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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/client/smbmount.c b/source3/client/smbmount.c
index cdfeb68064..51c1ee6310 100644
--- a/source3/client/smbmount.c
+++ b/source3/client/smbmount.c
@@ -350,7 +350,7 @@ static void cmd_mount(char *inbuf,char *outbuf)
string_replace(share_name, '\\', '/');
string_replace(share_name, ' ', '_');
- sprintf(mount_command, "smbmnt %s -s %s", mount_point, share_name);
+ slprintf(mount_command, sizeof(mount_command)-1,"smbmnt %s -s %s", mount_point, share_name);
while(next_token(NULL, buf, NULL))
{
@@ -830,7 +830,7 @@ static void usage(char *pname)
DEBUGLEVEL = atoi(optarg);
break;
case 'l':
- sprintf(debugf,"%s.client",optarg);
+ slprintf(debugf,sizeof(debugf)-1,"%s.client",optarg);
break;
case 'p':
port = atoi(optarg);