Skip to content

Commit 4dd093b

Browse files
author
Peter McCluskey
committed
fix fprintf to prevent crash under some unusual conditions
1 parent efb4aaf commit 4dd093b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/parse.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3700,15 +3700,15 @@ void fixreplyheader(char *dir, int num, int remove_maybes, int max_update)
37003700
}
37013701
if (!strncmp(bp->line, " [ <a href=\"#replies\">", 22)) {
37023702
list_started = TRUE;
3703-
fprintf (fp, bp->line);
3703+
fprintf (fp, "%s", bp->line);
37043704
bp = bp->next;
37053705
continue;
37063706
}
37073707
if (!strncmp(bp->line, "<!-- ureply", 11)) {
37083708
if (list_started == FALSE)
37093709
fprintf (fp, " [ <a href=\"#replies\">%s</a> ]\n",
37103710
lang[MSG_REPLIES]);
3711-
fprintf (fp, bp->line);
3711+
fprintf (fp, "%s", bp->line);
37123712
bp = bp->next;
37133713
continue;
37143714
}

0 commit comments

Comments
 (0)