diff options
Diffstat (limited to 'sfeed_atom.c')
-rw-r--r-- | sfeed_atom.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sfeed_atom.c b/sfeed_atom.c index aeea2de..ace7d5a 100644 --- a/sfeed_atom.c +++ b/sfeed_atom.c @@ -22,6 +22,8 @@ printcontent(const char *s) case '&': fputs("&", stdout); break; case '"': fputs(""", stdout); break; case '\\': + if (*(s + 1) == '\0') + break; s++; switch (*s) { case 'n': putchar('\n'); break; |