diff options
Diffstat (limited to 'source3/modules')
-rw-r--r-- | source3/modules/vfs_expand_msdfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/modules/vfs_expand_msdfs.c b/source3/modules/vfs_expand_msdfs.c index 12f2c8e72b..4b670d5172 100644 --- a/source3/modules/vfs_expand_msdfs.c +++ b/source3/modules/vfs_expand_msdfs.c @@ -71,7 +71,8 @@ static bool read_target_host(const char *mapfile, pstring targethost) *space = '\0'; - if (strncmp(client_addr(addr), buf, strlen(buf)) == 0) { + if (strncmp(client_addr(addr,sizeof(addr)), + buf, strlen(buf)) == 0) { found = True; break; } |