From b1545e4ccc4fb4f2231317032b99e48c0c04181a Mon Sep 17 00:00:00 2001 From: Nick Briggs Date: Thu, 9 Sep 2021 18:01:02 -0700 Subject: [PATCH] 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. --- src/dsk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dsk.c b/src/dsk.c index 277bbbb..1908cc2 100644 --- a/src/dsk.c +++ b/src/dsk.c @@ -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);