Merge pull request #10 from blairbonnett/fix-check-escapes

Fix msg_check_escapes() so it allows escaped backslashes.
This commit is contained in:
Jan Vidar Krey 2012-09-17 11:49:14 -07:00
commit ac39ebf38a

View File

@ -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;