]> git.saurik.com Git - apple/security.git/blobdiff - libsecurity_utilities/lib/inetreply.cpp
Security-55471.14.4.tar.gz
[apple/security.git] / libsecurity_utilities / lib / inetreply.cpp
index f229ce2f06015c74942a707132678cf34f68281d..94ddb30e38067452e417ef40a08ebdb4ec29ab59 100644 (file)
@@ -47,7 +47,7 @@ void InetReply::analyze()
 {
     // follow Internet rule #1: be lenient in what you accept
     /*const*/ char *p;                         // (un-const is ANSI bogosity in strtol)
-    mCode = strtol(mBuffer, &p, 10);
+    mCode = (int) strtol(mBuffer, &p, 10);
     if (p == mBuffer) {                        // conversion failed
         mCode = -1;                            // error indicator
         mSeparator = ' ';