diff options
Diffstat (limited to 'stream')
-rw-r--r-- | stream/stream_smb.c | 1 |
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) { |