diff options
Diffstat (limited to 'profile.c')
-rw-r--r-- | profile.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1196,6 +1196,11 @@ pp_string(const char *in_str, size_t len, int delim) if (delim != '/' && *str == delim) { *obufout++ = '\\'; *obufout++ = delim; + } else if (*str == '\0') { + *obufout++ = '\\'; + *obufout++ = '0'; + *obufout++ = '0'; + *obufout++ = '0'; } else if ((cp = strchr(escapes, *str)) != NULL) { i = cp - escapes; *obufout++ = '\\'; |