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 99c93d5..5bba8ec 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"))