strcmp(buf + 9, " mA") does not work because buf is CR-terminated, while " mA" is NUL-terminated. Drop ambiguities arising from the termination of the strings, and only compare the characters we care about, using strncmp(). Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> |
||
---|---|---|
.. | ||
Makefile.am | ||
fs9721.c | ||
fs9922.c | ||
metex14.c |