BR 1352920: Handle upper case %line

This commit is contained in:
H. Peter Anvin 2007-10-03 21:22:16 -07:00
parent 8f303505ea
commit 0a98f6046d

2
nasm.c
View File

@ -1682,7 +1682,7 @@ static char *no_pp_getline(void)
*/
buffer[strcspn(buffer, "\r\n\032")] = '\0';
if (!strncmp(buffer, "%line", 5)) {
if (!nasm_strnicmp(buffer, "%line", 5)) {
int32_t ln;
int li;
char *nm = nasm_malloc(strlen(buffer));