commit e8f2f8600ea194ded76e17a6875e1b1848e834cc from: Markus Uhlin date: Sat Aug 3 22:36:45 2024 UTC SaveThisMsg: return 0 on sscanf() error commit - 4019edcc5e23b9be9ba0a6dd33d1c841cbc38ca3 commit + e8f2f8600ea194ded76e17a6875e1b1848e834cc blob - 83bd16a3f0ceb48a407538664be8a376fa4f79ee blob + b301b995a7791b0e4b256c30a40f849f3fad1c72 --- FICS/playerdb.c +++ FICS/playerdb.c @@ -2436,8 +2436,10 @@ SaveThisMsg(int which, char *line) if (which == 0) return 1; - if (sscanf(line, "%19s", Sender) != 1) + if (sscanf(line, "%19s", Sender) != 1) { warnx("%s: failed to read sender"); + return 0; + } if (which < 0) { p1 = (-which) - 1;