(gamedown,show_motd): Change the %d to %ld for printing

tgm.tel_length as it is long.
This commit is contained in:
Ron Koenderink 2005-02-24 01:28:44 +00:00
parent 3af430ebc5
commit 7afaedbfc1
2 changed files with 2 additions and 2 deletions

View file

@ -166,7 +166,7 @@ gamedown(void)
return 1;
}
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);
return 1;
}

View file

@ -364,7 +364,7 @@ show_motd(void)
return RET_FAIL;
}
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);
return RET_FAIL;
}