summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xhost.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xhost.c b/xhost.c
index 1c855ee..22304bd 100644
--- a/xhost.c
+++ b/xhost.c
@@ -506,7 +506,7 @@ change_host(Display *dpy, char *name, Bool add)
(cp = strchr(name, '@'))) {
char *netname = name;
#ifdef SECURE_RPC
- static char username[MAXNETNAMELEN];
+ static char username[MAXNETNAMELEN + 1];
if (!cp[1]) {
struct passwd *pwd;