diff options
author | David Shaw <[email protected]> | 2003-07-10 12:26:42 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2003-07-10 12:26:42 +0000 |
commit | 654276143b4096f630cffb2010a08a60bd01c6b8 (patch) | |
tree | 5aa42063fd4299385ab70740580438c5049469d9 /util/iobuf.c | |
parent | * types.h: Prefer using uint64_t when creating a 64-bit unsigned type. (diff) | |
download | gnupg-654276143b4096f630cffb2010a08a60bd01c6b8.tar.gz gnupg-654276143b4096f630cffb2010a08a60bd01c6b8.zip |
* iobuf.c (check_special_filename): Replaced is isdigit by digitp
to avoid passing negative values and potential locale problems.
Problem noted by Christian Biere.
* strgutil.c (strlwr,strcasecmp,strncasecmp): Make sure we don't
pass a negative value.
* miscutil.c (scan_isodatestr): Ditto.
Diffstat (limited to 'util/iobuf.c')
-rw-r--r-- | util/iobuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/iobuf.c b/util/iobuf.c index 4d866c1e4..2b63d5c08 100644 --- a/util/iobuf.c +++ b/util/iobuf.c @@ -1032,7 +1032,7 @@ check_special_filename ( const char *fname ) int i; fname += 2; - for (i=0; isdigit (fname[i]); i++ ) + for (i=0; digitp (fname+i); i++ ) ; if ( !fname[i] ) return atoi (fname); |