projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5522ac4
)
Use the correct format specifier for the return value of strlen().
author
Christoph Mallon
<christoph.mallon@gmx.de>
Sat, 15 Nov 2008 22:13:37 +0000
(22:13 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Sat, 15 Nov 2008 22:13:37 +0000
(22:13 +0000)
[r23692]
mangle.c
patch
|
blob
|
history
diff --git
a/mangle.c
b/mangle.c
index
e3d719d
..
1098307
100644
(file)
--- a/
mangle.c
+++ b/
mangle.c
@@
-160,8
+160,8
@@
static void mangle_entity(entity_t *entity)
/* TODO: mangle scope */
-
symbol_t *symbol = entity->base.symbol
;
- obstack_printf(&obst, "%
u%s", strlen(symbol->string), symbol->string
);
+
const char *name = entity->base.symbol->string
;
+ obstack_printf(&obst, "%
zu%s", strlen(name), name
);
if (entity->kind == ENTITY_FUNCTION) {
mangle_parameters(&entity->declaration.type->function);