summaryrefslogtreecommitdiff
path: root/cmd/sdbthreadtst/sdbthreadtst.c
diff options
context:
space:
mode:
authorNoah Lokocz <nlokocz@mozilla.com>2023-03-16 11:54:55 +0000
committerNoah Lokocz <nlokocz@mozilla.com>2023-03-16 11:54:55 +0000
commit8acd95e85e0da102fc48369fd237c634fe6066ae (patch)
tree8e1a4dd99d6d370965a7a8a1db41dbde878a0997 /cmd/sdbthreadtst/sdbthreadtst.c
parentf658c5a831dab0cf861a0c939c0684f0ab012695 (diff)
downloadnss-hg-8acd95e85e0da102fc48369fd237c634fe6066ae.tar.gz
Bug 1819958. Removed deprecated sprintf function and replaced with snprintf. r=djackson
Differential Revision: https://phabricator.services.mozilla.com/D171859
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);
}
}