summaryrefslogtreecommitdiff
path: root/usr.sbin/rpc.pcnfsd/pcnfsd_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/rpc.pcnfsd/pcnfsd_test.c')
-rw-r--r--usr.sbin/rpc.pcnfsd/pcnfsd_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/rpc.pcnfsd/pcnfsd_test.c b/usr.sbin/rpc.pcnfsd/pcnfsd_test.c
index 7533aac63bf..cefa5e44cd5 100644
--- a/usr.sbin/rpc.pcnfsd/pcnfsd_test.c
+++ b/usr.sbin/rpc.pcnfsd/pcnfsd_test.c
@@ -249,7 +249,7 @@ FILE *fp;
return(1);
}
- sprintf(filenamebuff, "%s/%s", spooldirbuff, tag1);
+ snprintf(filenamebuff, sizeof filenamebuff, "%s/%s", spooldirbuff, tag1);
fp = fopen(filenamebuff, "w");
if(fp == NULL) {