From 450e48205fa8d7069efebd8426c5f7378fd3a907 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Thu, 3 Aug 2000 13:44:02 +0000 Subject: [PATCH] Ensure argument to isdigit() is within valid range by "&"ing with 0xff. --- lib/isc/unix/dir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/isc/unix/dir.c b/lib/isc/unix/dir.c index bf7ba43380..069a56f05d 100644 --- a/lib/isc/unix/dir.c +++ b/lib/isc/unix/dir.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: dir.c,v 1.13 2000/08/01 01:31:12 tale Exp $ */ +/* $Id: dir.c,v 1.14 2000/08/03 13:44:02 tale Exp $ */ /* Principal Authors: DCL */ @@ -179,7 +179,7 @@ isc_dir_createunique(char *templet) { */ p = x; while (*p != '\0') { - if (isdigit(*p)) + if (isdigit(*p & 0xff)) *p = 'a'; else if (*p != 'z') ++*p;