From d72b198e49e8bfb0bd58d98df38bad037c32eff4 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Mon, 18 Jun 2001 19:11:35 +0000 Subject: [PATCH] * krcp.c (sink): Cast argument to isdigit() to int git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13378 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/bsd/ChangeLog | 4 ++++ src/appl/bsd/krcp.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index 11b20cce5..c41623448 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -1,3 +1,7 @@ +2001-06-18 Ezra Peisach + + * krcp.c (sink): Cast argument to isdigit() to int. + 2001-06-18 Ezra Peisach * loginpaths.h: If _PATH_DEFPATH is defined, undefine LPATH and diff --git a/src/appl/bsd/krcp.c b/src/appl/bsd/krcp.c index 21852046e..c882b5300 100644 --- a/src/appl/bsd/krcp.c +++ b/src/appl/bsd/krcp.c @@ -1036,7 +1036,7 @@ void sink(argc, argv) return; } -#define getnum(t) (t) = 0; while (isdigit(*cp)) (t) = (t) * 10 + (*cp++ - '0'); +#define getnum(t) (t) = 0; while (isdigit((int) *cp)) (t) = (t) * 10 + (*cp++ - '0'); if (*cp == 'T') { setimes++; cp++; @@ -1079,7 +1079,7 @@ void sink(argc, argv) if (*cp++ != ' ') SCREWUP("mode not delimited"); size = 0; - while (isdigit(*cp)) + while (isdigit((int) *cp)) size = size * 10 + (*cp++ - '0'); if (*cp++ != ' ') SCREWUP("size not delimited"); -- 2.26.2