(gamedown,show_motd): Change the %d to %ld for printing
tgm.tel_length as it is long.
This commit is contained in:
parent
3af430ebc5
commit
7afaedbfc1
2 changed files with 2 additions and 2 deletions
|
@ -166,7 +166,7 @@ gamedown(void)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
if (tgm.tel_length >= (long)sizeof(buf)) {
|
if (tgm.tel_length >= (long)sizeof(buf)) {
|
||||||
logerror("text length (%d) is too long for login message (downfil)", tgm.tel_length);
|
logerror("text length (%ld) is too long for login message (downfil)", tgm.tel_length);
|
||||||
close(downf);
|
close(downf);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -364,7 +364,7 @@ show_motd(void)
|
||||||
return RET_FAIL;
|
return RET_FAIL;
|
||||||
}
|
}
|
||||||
if (tgm.tel_length >= (long)sizeof(buf)) {
|
if (tgm.tel_length >= (long)sizeof(buf)) {
|
||||||
logerror("text length (%d) is too long for login message (motdfil)", tgm.tel_length);
|
logerror("text length (%ld) is too long for login message (motdfil)", tgm.tel_length);
|
||||||
close(motdf);
|
close(motdf);
|
||||||
return RET_FAIL;
|
return RET_FAIL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue