OSDN Git Service
(root)
/
hengband
/
hengband.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ソキ・ネ・鬣テ・ラ。「キルハヨ、ノイテ。」
[hengband/hengband.git]
/
src
/
chuukei.c
diff --git
a/src/chuukei.c
b/src/chuukei.c
index
dcbaf71
..
34eae1e
100644
(file)
--- a/
src/chuukei.c
+++ b/
src/chuukei.c
@@
-264,7
+264,8
@@
static int read_chuukei_prf(cptr prf_name)
/* ¥µ¡¼¥Ð̾ */
if (!strncmp(buf, "server:", 7))
{
- strncpy(server_name, buf + 7, MAX_HOSTNAME);
+ strncpy(server_name, buf + 7, MAX_HOSTNAME - 1);
+ server_name[MAX_HOSTNAME - 1] = '\0';
}
/* ¥Ý¡¼¥ÈÈÖ¹æ */