]> granicus.if.org Git - graphviz/commitdiff
Fix bug in agputs for cgraph
authorerg <devnull@localhost>
Thu, 3 Sep 2009 22:12:51 +0000 (22:12 +0000)
committererg <devnull@localhost>
Thu, 3 Sep 2009 22:12:51 +0000 (22:12 +0000)
lib/common/output.c

index 6424fa79a860675e115c01037ec30043e1c1ba20..4d78ceacabc362b0d1518bd956fd74e428313200 100644 (file)
@@ -35,8 +35,8 @@ static void agputs (const char* s, FILE* fp)
 static void agputc (int c, FILE* fp)
 {
     static char buf[2] = {'\0','\0'};
-    buf[1] = c;
-    agputs (buf, fp);
+    buf[0] = c;
+    putstr ((void*)fp, buf);
 }
 
 #endif