changeset 1662:970b405bd6e6

Fix thinkos in new ccwrap.
author Rob Landley <rob@landley.net>
date Mon, 23 Jun 2014 06:59:56 -0500
parents 586b011cb706
children 8c8256e18ad2
files sources/toys/ccwrap.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sources/toys/ccwrap.c	Mon Jun 23 06:02:15 2014 -0500
+++ b/sources/toys/ccwrap.c	Mon Jun 23 06:59:56 2014 -0500
@@ -6,6 +6,7 @@
 
 #undef _FORTIFY_SOURCE
 
+#include <errno.h>
 #include <libgen.h>
 #include <stdarg.h>
 #include <stdio.h>
@@ -447,7 +448,7 @@
 
   if (getenv("CCWRAP_DEBUG")) {
     fprintf(stderr, "outgoing:");
-    for(i=0; i<outc; i++) printf(stderr, " \"%s\"", outv[i]);
+    for(i=0; i<outc; i++) fprintf(stderr, " \"%s\"", outv[i]);
     fprintf(stderr, "\n");
   }