diff options
Diffstat (limited to 'tests/bison_yylloc_scanner.l')
-rw-r--r-- | tests/bison_yylloc_scanner.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bison_yylloc_scanner.l b/tests/bison_yylloc_scanner.l index 3708237..eab898c 100644 --- a/tests/bison_yylloc_scanner.l +++ b/tests/bison_yylloc_scanner.l @@ -59,7 +59,7 @@ static char* STRDUP(char* s1); static char* STRDUP(char* s1) { - char* s2 = (char*)malloc(strlen(s1)+1); + char* s2 = malloc(strlen(s1)+1); sprintf(s2,"%s",s1); return s2; } |