diff --git a/dyngen.c b/dyngen.c index c1f348a94fecf96b3099473092219826d7b9f53a..ed580ff5c2d6d07e45a1a99ed44fb1066276a932 100644 --- a/dyngen.c +++ b/dyngen.c @@ -1196,7 +1196,7 @@ void get_reloc_expr(char *name, int name_size, const char *sym_name) } else { #ifdef HOST_SPARC if (sym_name[0] == '.') - snprintf(name, sizeof(name), + snprintf(name, name_size, "(long)(&__dot_%s)", sym_name + 1); else