summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/dfree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/dfree.c b/source3/smbd/dfree.c
index ddb91ab498..bd06d3f235 100644
--- a/source3/smbd/dfree.c
+++ b/source3/smbd/dfree.c
@@ -214,7 +214,7 @@ static SMB_BIG_UINT disk_free(char *path, BOOL small_query,
char *p;
FILE *pp;
- snprintf (line, sizeof(pstring), "%s %s", dfree_command, path);
+ slprintf (line, sizeof(pstring) - 1, "%s %s", dfree_command, path);
pp = popen(line, "r");
if (pp) {
fgets(line, sizeof(pstring), pp);