summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ChangeLog4
-rw-r--r--src/miscbltin.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a726af4..cb08ae5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-08-31  Eric Blake <ebb9@byu.net>
+
+	* Avoid compiler warnings on isdigit.
+
 2009-08-31  Matthew Burgess <matthew@linuxfromscratch.org>
 
 	* Add another missing LC_COLLATE to mkbuiltins.
diff --git a/src/miscbltin.c b/src/miscbltin.c
index be746b2..ec9872d 100644
--- a/src/miscbltin.c
+++ b/src/miscbltin.c
@@ -237,7 +237,7 @@ umaskcmd(int argc, char **argv)
 	} else {
 		int new_mask;
 
-		if (isdigit(*ap)) {
+		if (isdigit((unsigned char) *ap)) {
 			new_mask = 0;
 			do {
 				if (*ap >= '8' || *ap < '0')