summaryrefslogtreecommitdiff
path: root/tests/string_nr.l
diff options
context:
space:
mode:
Diffstat (limited to 'tests/string_nr.l')
-rw-r--r--tests/string_nr.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/string_nr.l b/tests/string_nr.l
index 3dd752a..e909b2d 100644
--- a/tests/string_nr.l
+++ b/tests/string_nr.l
@@ -82,7 +82,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;