aboutsummaryrefslogtreecommitdiff
path: root/target-i386
diff options
context:
space:
mode:
Diffstat (limited to 'target-i386')
-rw-r--r--target-i386/helper.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/target-i386/helper.c b/target-i386/helper.c
index 57e6f7c806..080d2b8c7d 100644
--- a/target-i386/helper.c
+++ b/target-i386/helper.c
@@ -657,8 +657,9 @@ static void listflags(char *buf, int bufsize, uint32_t fbits,
else
nc = snprintf(q, bufsize, "%s[%d]", q == buf ? "" : " ", bit);
if (bufsize <= nc) {
- if (b)
- sprintf(b, "...");
+ if (b) {
+ memcpy(b, "...", sizeof("..."));
+ }
return;
}
q += nc;