]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Store return value of getc() in an int to correctly test it against EOF
authorMartin Willi <martin@strongswan.org>
Thu, 22 Oct 2009 11:13:06 +0000 (13:13 +0200)
committerMartin Willi <martin@strongswan.org>
Thu, 22 Oct 2009 11:13:06 +0000 (13:13 +0200)
src/libstrongswan/utils/backtrace.c

index 99c93d59bfe51463b456324fa5b6cb6b1ec290cc..5bba8ec2142166623be7eb6188731a877d3dd7f6 100644 (file)
@@ -71,7 +71,7 @@ static void log_(private_backtrace_t *this, FILE *file)
                {
                        char cmd[1024];
                        FILE *output;
-                       char c;
+                       int c;
                        void *ptr = this->frames[i];
 
                        if (strstr(info.dli_fname, ".so"))