diff options
author | Marc Hoersken <info@marc-hoersken.de> | 2012-09-28 23:57:04 +0200 |
---|---|---|
committer | Marc Hoersken <info@marc-hoersken.de> | 2012-10-04 19:17:00 +0200 |
commit | dee2ef8083342dc6141ede9ab39ef55bc00a56d5 (patch) | |
tree | 9caa49dd23c7e2ed840938d6c92ad29a5bf2aa9f /lib/krb5.c | |
parent | 50a7d32af05687eef53e58ad5314a6bea2fd6a3e (diff) | |
download | curl-dee2ef8083342dc6141ede9ab39ef55bc00a56d5.tar.gz |
krb5/curl_rtmp.c: Hide size_t to int type conversion warning
Diffstat (limited to 'lib/krb5.c')
-rw-r--r-- | lib/krb5.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/krb5.c b/lib/krb5.c index 8614acb00..c51041dda 100644 --- a/lib/krb5.c +++ b/lib/krb5.c @@ -53,6 +53,7 @@ #include "sendf.h" #include "krb4.h" #include "curl_memory.h" +#include "warnless.h" #define _MPRINTF_REPLACE /* use our functions only */ #include <curl/mprintf.h> @@ -103,7 +104,7 @@ krb5_decode(void *app_data, void *buf, int len, } memcpy(buf, dec.value, dec.length); - len = dec.length; + len = curlx_uztosi(dec.length); gss_release_buffer(&min, &dec); return len; @@ -151,7 +152,7 @@ krb5_encode(void *app_data, const void *from, int length, int level, void **to, if(!*to) return -1; memcpy(*to, enc.value, enc.length); - len = enc.length; + len = curlx_uztosi(enc.length); gss_release_buffer(&min, &enc); return len; } |