diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2013-05-28 21:19:36 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2013-05-28 21:19:36 +0300 |
commit | 193a78e55fc2e0cd54e0da204d2f9eb0f90f1fb2 (patch) | |
tree | 29f91f479da30d8ad768f6d38e5368a7d8fea587 /profile.c | |
parent | 94b64f95755e183578d74fafa3e6403a1f23545a (diff) | |
download | egawk-193a78e55fc2e0cd54e0da204d2f9eb0f90f1fb2.tar.gz egawk-193a78e55fc2e0cd54e0da204d2f9eb0f90f1fb2.tar.bz2 egawk-193a78e55fc2e0cd54e0da204d2f9eb0f90f1fb2.zip |
Minor profiling fixes. More to come.
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++ = '\\'; |