summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dyngen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dyngen.c b/dyngen.c
index c1f348a94f..ed580ff5c2 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