diff options
Diffstat (limited to 'field.c')
-rw-r--r-- | field.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1196,8 +1196,12 @@ choose_fs_function: } else if (fs->stptr[0] == '\\') { /* yet another special case */ strcpy(buf, "[\\\\\n]"); - } else if (fs->stptr[0] != '\n') + } else if (fs->stptr[0] == '\0') { + /* and yet another special case */ + strcpy(buf, "[\\000\n]"); + } else if (fs->stptr[0] != '\n') { sprintf(buf, "[%c\n]", fs->stptr[0]); + } } } else { parse_field = def_parse_field; |