public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2b4857
)
tolower was called without checking for isupper; adapted
author
ceriel
<none@none>
Fri, 10 Jun 1988 14:28:32 +0000
(14:28 +0000)
committer
ceriel
<none@none>
Fri, 10 Jun 1988 14:28:32 +0000
(14:28 +0000)
lang/cem/libcc/stdio/doscan.c
patch
|
blob
|
history
diff --git
a/lang/cem/libcc/stdio/doscan.c
b/lang/cem/libcc/stdio/doscan.c
index
9d9cd92
..
6793147
100644
(file)
--- a/
lang/cem/libcc/stdio/doscan.c
+++ b/
lang/cem/libcc/stdio/doscan.c
@@
-80,9
+80,9
@@
va_list ap;
width = width * 10 + *format++ - '0';
} else
widflag = 0; /* no width spec */
- if (longflag = (
tolower (*format)
== 'l'))
+ if (longflag = (
*format == 'L' || *format
== 'l'))
++format;
- else if (shortflag = (
tolower(*format)
== 'h'))
+ else if (shortflag = (
*format == 'H' || *format
== 'h'))
++format;
if (isupper(*format)) {
kind = tolower(*format);