diff options
author | Siddhesh Poyarekar <siddhesh@redhat.com> | 2013-04-23 15:32:42 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@redhat.com> | 2013-04-23 15:32:42 +0530 |
commit | ff491d14a2c7329e4b61cb9d937203d4139954f9 (patch) | |
tree | 93ad4e5199ad8f1f9def969d9e96f98a80d73d6b /time/strptime_l.c | |
parent | 7ed3f4e859896fbb8d384a4f101e40df47eb0ef0 (diff) | |
download | glibc-ff491d14a2c7329e4b61cb9d937203d4139954f9.tar glibc-ff491d14a2c7329e4b61cb9d937203d4139954f9.tar.gz glibc-ff491d14a2c7329e4b61cb9d937203d4139954f9.tar.bz2 glibc-ff491d14a2c7329e4b61cb9d937203d4139954f9.zip |
Consistently use ISSPACE to check for whitespace
Resolves #14888.
This only really manifests itself when there are no spaces between
format specifiers, which is not allowed by POSIX, but is allowed by
the glibc implementation.
Diffstat (limited to 'time/strptime_l.c')
-rw-r--r-- | time/strptime_l.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/time/strptime_l.c b/time/strptime_l.c index 89daffaa05..1f2e8b622f 100644 --- a/time/strptime_l.c +++ b/time/strptime_l.c @@ -72,7 +72,7 @@ localtime_r (t, tp) do { \ int __n = n; \ val = 0; \ - while (*rp == ' ') \ + while (ISSPACE (*rp)) \ ++rp; \ if (*rp < '0' || *rp > '9') \ return NULL; \ @@ -752,7 +752,7 @@ __strptime_internal (rp, fmt, tmp, statep LOCALE_PARAM) also specified. */ { val = 0; - while (*rp == ' ') + while (ISSPACE (*rp)) ++rp; if (*rp != '+' && *rp != '-') return NULL; |