Skip to content

Commit b1545e4

Browse files
committed
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.
1 parent 4f79f55 commit b1545e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dsk.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2502,8 +2502,8 @@ int true_name(register char *path)
25022502
#ifdef DOS
25032503
char drive[1];
25042504
#endif
2505-
register char *sp, *cp;
2506-
register int type, c;
2505+
register char c, *sp, *cp;
2506+
register int type;
25072507

25082508
if (strcmp(path, "/") == 0) return (-1);
25092509

0 commit comments

Comments
 (0)