summaryrefslogtreecommitdiffstats
path: root/stream/stream_smb.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream/stream_smb.c')
-rw-r--r--stream/stream_smb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/stream/stream_smb.c b/stream/stream_smb.c
index 269974f18b..bc51796bbc 100644
--- a/stream/stream_smb.c
+++ b/stream/stream_smb.c
@@ -43,6 +43,7 @@ static void smb_auth_fn(const char *server, const char *share,
char *password, int pwmaxlen)
{
strncpy(workgroup, "LAN", wgmaxlen - 1);
+ workgroup[wgmaxlen - 1] = '\0';
}
static int control(stream_t *s, int cmd, void *arg) {