diff options
author | David Oberhollenzer <david.oberhollenzer@tele2.at> | 2018-11-24 13:30:02 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@tele2.at> | 2018-11-24 13:30:51 +0100 |
commit | 1d6b5e58ab0f7752f8419ed27d59b8cc6d5127dd (patch) | |
tree | b7a18481951278069e41c72208a4dda3a394aa0b | |
parent | d2b3a983e16f15d636619ebd61a3fa08c889b080 (diff) |
Fix: mnemonic comparison in readnum
- compare the current mneonic in loop, not the first one
- don't invert comparison
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
-rw-r--r-- | rdcron.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |