Merge pull request #10 from blairbonnett/fix-check-escapes
Fix msg_check_escapes() so it allows escaped backslashes.
This commit is contained in:
commit
ac39ebf38a
@ -76,6 +76,12 @@ static int msg_check_escapes(const char* string, size_t len)
|
|||||||
case '\\':
|
case '\\':
|
||||||
case 'n':
|
case 'n':
|
||||||
case 's':
|
case 's':
|
||||||
|
/* Increment so we don't check the escaped
|
||||||
|
* character next time around. Not doing so
|
||||||
|
* leads to messages with escaped backslashes
|
||||||
|
* being incorrectly reported as having invalid
|
||||||
|
* escapes. */
|
||||||
|
++start;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user