diff options
Diffstat (limited to 'tests/string_r.l')
-rw-r--r-- | tests/string_r.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/string_r.l b/tests/string_r.l index d98c98a..633004a 100644 --- a/tests/string_r.l +++ b/tests/string_r.l @@ -87,7 +87,7 @@ main () We make a copy, since the buffer will be modified by flex.*/ printf("Testing: yy_scan_buffer(%s): ",INPUT_STRING_1); fflush(stdout); len = strlen(INPUT_STRING_1) + 2; - buf = (char*)malloc( len ); + buf = malloc(len); strcpy( buf, INPUT_STRING_1); buf[ len -2 ] = 0; /* Flex requires two NUL bytes at end of buffer. */ buf[ len -1 ] =0; |