oops, makedoc is used in the build process.
authorPierre Habouzit <madcoder@debian.org>
Sun, 29 Oct 2006 01:45:56 +0000 (02:45 +0100)
committerPierre Habouzit <madcoder@debian.org>
Sun, 29 Oct 2006 01:45:56 +0000 (02:45 +0100)
makedoc.c

index f5e85cf..4829215 100644 (file)
--- a/makedoc.c
+++ b/makedoc.c
@@ -191,7 +191,7 @@ static void add_var (const char *name)
 {
   outbuf = realloc (outbuf, (++outcount) * sizeof (var_t));
   outbuf[outcount - 1].seen = 0;
-  outbuf[outcount - 1].name = p_strdup(name, str_len(name));
+  outbuf[outcount - 1].name = strdup(name);
   outbuf[outcount - 1].descr = NULL;
 }
 
@@ -207,7 +207,7 @@ static int add_s (const char *s)
   }
 
   if (lold == 0)
-    outbuf[outcount - 1].descr = p_strdup(s, str_len(s));
+    outbuf[outcount - 1].descr = strdup(s);
   else {
     outbuf[outcount - 1].descr =
       realloc (outbuf[outcount - 1].descr, lold + lnew + 1);