|
From: Julian S. <js...@ac...> - 2003-12-12 06:22:37
|
CVS commit by jseward:
Print "object doesn't have a %s" all on one line.
M +4 -2 vg_symtab2.c 1.61
--- valgrind/coregrind/vg_symtab2.c #1.60:1.61
@@ -677,6 +677,8 @@ void read_symtab( SegInfo* si, Char* tab
if (o_strtab == NULL || o_symtab == NULL) {
- VG_(symerr)("object doesn't have a ");
- VG_(symerr)(tab_name);
+ Char buf[80];
+ vg_assert(VG_(strlen)(tab_name) < 40);
+ VG_(sprintf)(buf, " object doesn't have a %s", tab_name);
+ VG_(symerr)(buf);
return;
}
|