include strlcpy and *printf and use them
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14930 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -102,9 +102,8 @@ statement : INDEX NUMBER
|
||||
}
|
||||
| PREFIX STRING
|
||||
{
|
||||
prefix = realloc(prefix, strlen($2) + 2);
|
||||
strcpy(prefix, $2);
|
||||
strcat(prefix, "_");
|
||||
free(prefix);
|
||||
asprintf (&prefix, "%s_", $2);
|
||||
free($2);
|
||||
}
|
||||
| PREFIX
|
||||
|
Reference in New Issue
Block a user