#983901 reroute.c: cast an integer to "unsigned char" for the function "isspace()"

Package:
src:nn
Source:
nn
Submitter:
Bjarni Ingi Gislason
Date:
2021-03-03 02:09:04 UTC
Severity:
normal
Tags:
#983901#5
Date:
2021-03-03 02:07:33 UTC
From:
To:
Dear Maintainer,

  reroute.c: cast an integer to "unsigned char" for the function
"isspace()"

Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
---
 reroute.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/reroute.c b/reroute.c
index da03112..21b4216 100644
--- a/reroute.c
+++ b/reroute.c
@@ -30,7 +30,7 @@ reroute(char *route, char *address)
 	    name++;

 	for (sp = atpos; (c = *sp); sp++)
-	    if (isspace(c) || c == '>')
+	    if (isspace((unsigned char) c) || c == '>')
 		break;

 	*sp = NUL;