summaryrefslogtreecommitdiffstats
path: root/target-i386/helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'target-i386/helper.c')
-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 57e6f7c..080d2b8 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;
OpenPOWER on IntegriCloud