diff options
author | Yang Tse <yangsita@gmail.com> | 2010-12-01 23:33:43 +0100 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2010-12-01 23:33:43 +0100 |
commit | 7e3f0bffe5d930489db80e1d65c27fe44a51f6f4 (patch) | |
tree | 77c1c1161573e324846c8ee46857810613e4dde0 /lib/smtp.c | |
parent | 5d47bf377668846d915c3d8a3f22cfdf66041512 (diff) |
fix compiler warning: conversion may lose significant bits
Diffstat (limited to 'lib/smtp.c')
-rw-r--r-- | lib/smtp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/smtp.c b/lib/smtp.c index 5ccdcb671..1e2e75b29 100644 --- a/lib/smtp.c +++ b/lib/smtp.c @@ -92,6 +92,7 @@ #include "curl_md5.h" #include "curl_hmac.h" #include "curl_gethostname.h" +#include "warnless.h" #define _MPRINTF_REPLACE /* use our functions only */ #include <curl/mprintf.h> @@ -226,7 +227,7 @@ static int smtp_endofresp(struct pingpong *pp, int *resp) return FALSE; /* Nothing for us. */ if((result = line[3] == ' ')) - *resp = strtol(line, NULL, 10); + *resp = curlx_sltosi(strtol(line, NULL, 10)); line += 4; len -= 4; |