1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-27 20:27:45 +00:00

fix 'signed char' to 'int' conversion [cert-str34-c]

Fortunately here we don't need to convert to unsigned char then int,
we can do the only comparisons we need staying in the char domain.
This commit is contained in:
Nick Briggs
2021-09-09 18:01:02 -07:00
parent 4f79f55c20
commit b1545e4ccc

View File

@@ -2502,8 +2502,8 @@ int true_name(register char *path)
#ifdef DOS
char drive[1];
#endif
register char *sp, *cp;
register int type, c;
register char c, *sp, *cp;
register int type;
if (strcmp(path, "/") == 0) return (-1);