mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-04-24 19:00:23 +08:00
quote: Fix returning out of string pointer, take 2
In commit a45febd767 only part of problem has been covered. Need to be ready for strings like | `a http://bugzilla.nasm.us/show_bug.cgi?id=3392295 Reported-by: Hanno Boeck <hanno@hboeck.de> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
85ec505d05
commit
7cc90badae
2
quote.c
2
quote.c
@ -471,7 +471,7 @@ char *nasm_skip_string(char *str)
|
||||
break;
|
||||
}
|
||||
}
|
||||
return p; /* Unterminated string... */
|
||||
return p-1; /* Unterminated string... */
|
||||
} else {
|
||||
return str; /* Not a string... */
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user