summaryrefslogtreecommitdiff
path: root/src/login
diff options
context:
space:
mode:
Diffstat (limited to 'src/login')
-rw-r--r--src/login/login.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/login.c b/src/login/login.c
index 21fb9ee..5843c31 100644
--- a/src/login/login.c
+++ b/src/login/login.c
@@ -3422,7 +3422,7 @@ int login_config_read(const char *cfgName) {
update_host[sizeof(update_host)-1] = '\0';
} else if (strcmpi(w1, "main_server") == 0) {
strncpy(main_server, w2, sizeof(main_server));
- update_host[sizeof(main_server)-1] = '\0';
+ main_server[sizeof(main_server)-1] = '\0';
}
}
}