summaryrefslogtreecommitdiff
path: root/sfeed_json.c
diff options
context:
space:
mode:
Diffstat (limited to 'sfeed_json.c')
-rw-r--r--sfeed_json.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sfeed_json.c b/sfeed_json.c
index f6bb904..e177d2b 100644
--- a/sfeed_json.c
+++ b/sfeed_json.c
@@ -16,6 +16,8 @@ printcontent(const char *s)
for (; *s; s++) {
switch (*s) {
case '\\':
+ if (*(s + 1) == '\0')
+ break;
s++;
switch (*s) {
case 'n': fputs("\\n", stdout); break;