diff options
-rw-r--r-- | src/util/profile/prof_parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/profile/prof_parse.c b/src/util/profile/prof_parse.c index 531e4a0..7ba44ac 100644 --- a/src/util/profile/prof_parse.c +++ b/src/util/profile/prof_parse.c @@ -48,7 +48,7 @@ static void parse_quoted_string(char *str) char *to, *from; for (to = from = str; *from && *from != '"'; to++, from++) { - if (*from == '\\') { + if (*from == '\\' && *(from + 1) != '\0') { from++; switch (*from) { case 'n': |