From 1d6b5e58ab0f7752f8419ed27d59b8cc6d5127dd Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sat, 24 Nov 2018 13:30:02 +0100 Subject: [PATCH] Fix: mnemonic comparison in readnum - compare the current mneonic in loop, not the first one - don't invert comparison Signed-off-by: David Oberhollenzer --- rdcron.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rdcron.c b/rdcron.c index 7e39763..3176457 100644 --- a/rdcron.c +++ b/rdcron.c @@ -115,7 +115,7 @@ static char *readnum(char *line, int *out, int minval, int maxval, line[i] = '\0'; for (ev = mnemonic; ev->name != NULL; ++ev) { - if (!strcmp(line, mnemonic->name) == 0) + if (strcmp(line, ev->name) == 0) break; }