summaryrefslogtreecommitdiff
path: root/source3/lib/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/util.c')
-rw-r--r--source3/lib/util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 403ebb73eb..1aa88c0708 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -3731,6 +3731,7 @@ char *automount_server(char *user_name)
home_server_len = sizeof(pstring);
}
strncpy(server_name, nis_result, home_server_len);
+ server_name[home_server_len] = '\0';
}
#else
/* use the local machine name instead of the auto-map server */