summaryrefslogtreecommitdiff
path: root/source3/client/smbmount.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/client/smbmount.c')
-rw-r--r--source3/client/smbmount.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/client/smbmount.c b/source3/client/smbmount.c
index 9b92cf261a..35677815ff 100644
--- a/source3/client/smbmount.c
+++ b/source3/client/smbmount.c
@@ -455,22 +455,22 @@ static void init_mount(void)
args[i++] = "-r";
}
if (mount_uid) {
- slprintf(tmp, sizeof(tmp), "%d", mount_uid);
+ slprintf(tmp, sizeof(tmp)-1, "%d", mount_uid);
args[i++] = "-u";
args[i++] = xstrdup(tmp);
}
if (mount_gid) {
- slprintf(tmp, sizeof(tmp), "%d", mount_gid);
+ slprintf(tmp, sizeof(tmp)-1, "%d", mount_gid);
args[i++] = "-g";
args[i++] = xstrdup(tmp);
}
if (mount_fmask) {
- slprintf(tmp, sizeof(tmp), "0%o", mount_fmask);
+ slprintf(tmp, sizeof(tmp)-1, "0%o", mount_fmask);
args[i++] = "-f";
args[i++] = xstrdup(tmp);
}
if (mount_dmask) {
- slprintf(tmp, sizeof(tmp), "0%o", mount_dmask);
+ slprintf(tmp, sizeof(tmp)-1, "0%o", mount_dmask);
args[i++] = "-d";
args[i++] = xstrdup(tmp);
}