projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ccf7cf
)
Repair L"a" "b" concatenation.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Mon, 8 Dec 2008 12:41:46 +0000
(12:41 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Mon, 8 Dec 2008 12:41:46 +0000
(12:41 +0000)
[r24395]
lexer.c
patch
|
blob
|
history
diff --git
a/lexer.c
b/lexer.c
index
d2180c0
..
0f01d44
100644
(file)
--- a/
lexer.c
+++ b/
lexer.c
@@
-937,9
+937,10
@@
wide_string_t concat_wide_string_string(const wide_string_t *const s1, const str
wchar_rep_t *const concat = obstack_alloc(&symbol_obstack, (len1 + len2 + 1) * sizeof(*concat));
memcpy(concat, s1->begin, len1 * sizeof(*concat));
- const char *const src = s2->begin;
+ const char *const src = s2->begin;
+ wchar_rep_t *const dst = concat + len1;
for (size_t i = 0; i != len2 + 1; ++i) {
-
conca
t[i] = src[i];
+
ds
t[i] = src[i];
}
if (warning.traditional) {
warningf(&lexer_token.source_position,