From 98e8d2445213432c65ae48cfa76c863aae1139e7 Mon Sep 17 00:00:00 2001 From: Scott Gasch Date: Wed, 3 Oct 2018 20:38:03 -0700 Subject: Update codebase to remove clang warnings (and a couple of legit errors it found) --- src/util.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/util.c') diff --git a/src/util.c b/src/util.c index 599c16d..34b3739 100755 --- a/src/util.c +++ b/src/util.c @@ -426,7 +426,7 @@ Return value: // // Skip chunks // - while(!isspace(*p) && &p) p++; + while(!isspace(*p) && *p) p++; if (!*p) return(NULL); } while(1); @@ -702,13 +702,13 @@ Return value: // Send to logfile // if (NULL != g_pfLogfile) { - fprintf(g_pfLogfile, buf); + fprintf(g_pfLogfile, "%s", buf); } // // Send to stdout // - fprintf(stdout, buf); + fprintf(stdout, "%s", buf); fflush(stdout); } @@ -747,7 +747,7 @@ Return value: // Send to logfile // if (NULL != g_pfLogfile) { - fprintf(g_pfLogfile, buf); + fprintf(g_pfLogfile, "%s", buf); fflush(g_pfLogfile); } } @@ -788,14 +788,14 @@ Return value: // Send it to logfile // if (NULL != g_pfLogfile) { - fprintf(g_pfLogfile, buf); + fprintf(g_pfLogfile, "%s", buf); fflush(g_pfLogfile); } // // Send it to stderr // - fprintf(stderr, buf); + fprintf(stderr, "%s", buf); fflush(stderr); } -- cgit v1.3