summaryrefslogtreecommitdiff
path: root/cmd/sdbthreadtst/sdbthreadtst.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/sdbthreadtst/sdbthreadtst.c')
-rw-r--r--cmd/sdbthreadtst/sdbthreadtst.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/sdbthreadtst/sdbthreadtst.c b/cmd/sdbthreadtst/sdbthreadtst.c
index 49f53a1e1..6ea429a9e 100644
--- a/cmd/sdbthreadtst/sdbthreadtst.c
+++ b/cmd/sdbthreadtst/sdbthreadtst.c
@@ -154,11 +154,11 @@ main(int argc, char **argv)
usage(prog, NULL);
break;
default:
- sprintf(buf, "unknown option %c", arg[1]);
+ snprintf(buf, sizeof(buf), "unknown option %c", arg[1]);
usage(prog, buf);
}
} else {
- sprintf(buf, "unknown argument %s", arg);
+ snprintf(buf, sizeof(buf), "unknown argument %s", arg);
usage(prog, buf);
}
}