]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
static-return-from-structname-20030410
authorKevin Coffman <kwc@citi.umich.edu>
Thu, 10 Apr 2003 15:55:32 +0000 (15:55 +0000)
committerJim Rees <rees@umich.edu>
Thu, 10 Apr 2003 15:55:32 +0000 (15:55 +0000)
return pointer to static data from structname()
needed by aix, probably others too.
This bug has been around forever!

src/rxgen/rpc_parse.c

index 14dc161c9a1aff883b2116f87ff4a51f8c6e2649..0113374df3584a4c132ddc40d0ad19cdec2b4e20 100644 (file)
@@ -667,7 +667,8 @@ static void customize_struct(definition *defp)
 
 static char *structname(char *name)
 {
-    char namecontents[150], *pnt, *pnt1;
+    static char namecontents[150];
+    char *pnt, *pnt1;
 
     strcpy(namecontents, name);
     pnt = namecontents;