length were considered overlong and ignored.
{
FILE *down_fp;
struct telstr tgm;
- s_char buf[MAXTELSIZE]; /* buf is message text */
+ char buf[MAXTELSIZE + 1]; /* message text */
if (player->god)
return 0;
{
FILE *motd_fp;
struct telstr tgm;
- char buf[MAXTELSIZE];
+ char buf[MAXTELSIZE + 1]; /* message text */
- if ((motd_fp = fopen(motdfil, "rb")) == NULL)
- {
+ if ((motd_fp = fopen(motdfil, "rb")) == NULL) {
if (errno == ENOENT)
return RET_OK;
- else
- {
+ else {
pr ("Could not open motd.\n");
logerror("Could not open motd (%s).\n", motdfil);
return RET_SYS;