mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-16 06:18:47 +02:00
Properly parse args to MOON special
This commit is contained in:
@@ -645,7 +645,7 @@ SetMoonEntry(int jul, char const *moon)
|
||||
}
|
||||
|
||||
msg[0] = 0;
|
||||
if (sscanf(moon, "%d %*d %*d %31s", &phase, msg) < 4) {
|
||||
if (sscanf(moon, "%d %*d %*d %31c", &phase, msg) < 4) {
|
||||
if (sscanf(moon, "%d", &phase) != 1) {
|
||||
/* Malformed MOON special; ignore */
|
||||
fprintf(stderr, "Oops 1\n");
|
||||
|
||||
Reference in New Issue
Block a user