diff options
author | Michael McConville <mmcconville@mykolab.com> | 2015-12-07 19:44:10 -0500 |
---|---|---|
committer | Will Estes <westes575@gmail.com> | 2015-12-07 21:28:21 -0500 |
commit | c03bef5411d3231f42445932d1971d656f020817 (patch) | |
tree | 90040d0915d1bd68db3a70fc011d56135909eaaa /tests/string_nr.l | |
parent | 53e3088d75eb966101e4f229a0fe8e0fdd73ab7e (diff) |
Remove allocation casts
Diffstat (limited to 'tests/string_nr.l')
-rw-r--r-- | tests/string_nr.l | 2 |
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; |