Fix call from vfprintf to fprintf, which could cause seg faults.
authorJustin Pettit <jpettit@nicira.com>
Wed, 16 Apr 2008 23:49:42 +0000 (16:49 -0700)
committerJustin Pettit <jpettit@nicira.com>
Wed, 16 Apr 2008 23:49:42 +0000 (16:49 -0700)
utilities/dpctl.c

index a3a2c9bdea11e8a4bb5c54afd253ce6a9ea5c1e6..d79bf00cfb0238102d086b4eb7e4d83aa07271c5 100644 (file)
@@ -197,7 +197,7 @@ static void run(int retval, const char *message, ...)
         if (retval == EOF) {
             fputs(": unexpected end of file\n", stderr);
         } else {
-            vfprintf(stderr, ": %s\n", strerror(retval));
+            fprintf(stderr, ": %s\n", strerror(retval));
         }
 
         exit(EXIT_FAILURE);