From: arif Date: Tue, 26 Feb 2008 16:43:51 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: LAST_LIBGRAPH~32^2~4693 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c7d1e70f4643939880a80ac47642d25261ac6d32;p=graphviz *** empty log message *** --- diff --git a/lib/utilities/abstring.c b/lib/utilities/abstring.c index 657568a8c..8013bf6d9 100755 --- a/lib/utilities/abstring.c +++ b/lib/utilities/abstring.c @@ -17,7 +17,9 @@ //string utilities //supports memory allocation //this library works with \0 terminated strings +#include #include "stdio.h" +#include #include "abstring.h" #define MAXSTRINGLENGTH 1000 int ABLength(char* s) @@ -33,9 +35,6 @@ int ABLength(char* s) } char* ABSet(char* s) { - char* a; - a=(char*)realloc(a, ABLength(s)+1); - strcpy(a,s); } char* ABJoin(char* s1,char* s2) { diff --git a/lib/utilities/abstring.h b/lib/utilities/abstring.h index 02e72a6ec..f755e8399 100755 --- a/lib/utilities/abstring.h +++ b/lib/utilities/abstring.h @@ -18,7 +18,6 @@ //supports memory allocation //this library works with \0 terminated strings -#include "viewport.h" int ABLength(char* s); char* ABSet(char* s); char* ABJoin(char* s1,char* s2);