From 7b232cdf19ca88b0cf7ed049f93ecff9b1a2c9ef Mon Sep 17 00:00:00 2001 From: christos Date: Sat, 19 Dec 1998 20:34:53 +0000 Subject: [PATCH] char -> unsigned char --- usr.bin/rdist/server.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/usr.bin/rdist/server.c b/usr.bin/rdist/server.c index a9aa3fda3cf3..3817ab0f5f24 100644 --- a/usr.bin/rdist/server.c +++ b/usr.bin/rdist/server.c @@ -1,4 +1,4 @@ -/* $NetBSD: server.c,v 1.16 1998/12/19 20:32:17 christos Exp $ */ +/* $NetBSD: server.c,v 1.17 1998/12/19 20:34:53 christos Exp $ */ /* * Copyright (c) 1983, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)server.c 8.1 (Berkeley) 6/9/93"; #else -__RCSID("$NetBSD: server.c,v 1.16 1998/12/19 20:32:17 christos Exp $"); +__RCSID("$NetBSD: server.c,v 1.17 1998/12/19 20:34:53 christos Exp $"); #endif #endif /* not lint */ @@ -633,14 +633,14 @@ again: return(3); size = 0; - while (isdigit(*s)) + while (isdigit((unsigned char)*s)) size = size * 10 + (*s++ - '0'); if (*s++ != ' ') { error("update: size not delimited\n"); return(0); } mtime = 0; - while (isdigit(*s)) + while (isdigit((unsigned char)*s)) mtime = mtime * 10 + (*s++ - '0'); if (*s != '\n') { error("update: mtime not delimited\n"); @@ -735,14 +735,14 @@ recvf(cmd, type) return; } size = 0; - while (isdigit(*cp)) + while (isdigit((unsigned char)*cp)) size = size * 10 + (*cp++ - '0'); if (*cp++ != ' ') { error("recvf: size not delimited\n"); return; } mtime = 0; - while (isdigit(*cp)) + while (isdigit((unsigned char)*cp)) mtime = mtime * 10 + (*cp++ - '0'); if (*cp++ != ' ') { error("recvf: mtime not delimited\n");