projects
/
coreboot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c791ce
)
- misc minor fixes
author
Eric Biederman
<ebiederm@xmission.com>
Sat, 26 Apr 2003 03:20:53 +0000
(
03:20
+0000)
committer
Eric Biederman
<ebiederm@xmission.com>
Sat, 26 Apr 2003 03:20:53 +0000
(
03:20
+0000)
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@802
2b7e53f0
-3cfb-0310-b3e9-
8179ed1497e1
util/romcc/romcc.c
patch
|
blob
|
history
diff --git
a/util/romcc/romcc.c
b/util/romcc/romcc.c
index 29df259edd6c4acf2effb7c589f6208ef326bc6f..0f1367cef6b9402ec91c8c16bc1267c769bf2dfa 100644
(file)
--- a/
util/romcc/romcc.c
+++ b/
util/romcc/romcc.c
@@
-6063,8
+6063,8
@@
static struct triple *string_constant(struct compile_state *state)
tk = &state->token[0];
str = tk->val.str + 1;
str_len = tk->str_len - 2;
- if (str_len <
=
0) {
- error(state, 0, "
empty string constant
");
+ if (str_len < 0) {
+ error(state, 0, "
negative string constant length
");
}
end = str + str_len;
ptr = buf;