From 4c882d7216bb12d5821a108b9f11544a075c7024 Mon Sep 17 00:00:00 2001 From: David Timber Date: Tue, 20 Oct 2020 07:28:50 +1030 Subject: Impl hostinfod and extras ... * Use EOVERFLOW instead of E2BIG * Add prne_iobuf_zero() * Fix format check logic error in prne_htbt_ser_msg_head() * Add prne_dup_str() * Add prne_timespec_ms() --- src/libssh2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libssh2.c') diff --git a/src/libssh2.c b/src/libssh2.c index 6e31c1e..f1e8d04 100644 --- a/src/libssh2.c +++ b/src/libssh2.c @@ -131,7 +131,7 @@ int prne_lssh2_ua_pwd ( const size_t pw_len = prne_nstrlen(pw); if (id_len > UINT_MAX || pw_len > UINT_MAX) { - errno = E2BIG; + errno = EOVERFLOW; return -1; } @@ -273,7 +273,7 @@ int prne_lssh2_ch_read ( { lssh2_cbctx_ch_f_t ctx; if (len > INT_MAX) { - errno = E2BIG; + errno = EOVERFLOW; return -1; } ctx.c = c; @@ -294,7 +294,7 @@ int prne_lssh2_ch_write ( { lssh2_cbctx_ch_f_t ctx; if (len > INT_MAX) { - errno = E2BIG; + errno = EOVERFLOW; return -1; } ctx.c = c; -- cgit