diff options
Diffstat (limited to 'games/adventure/io.c')
-rw-r--r-- | games/adventure/io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/games/adventure/io.c b/games/adventure/io.c index 36d6d49..04f17ee 100644 --- a/games/adventure/io.c +++ b/games/adventure/io.c @@ -526,7 +526,7 @@ pspeak(int m, int skip) char *tbuf; msg = &ptext[m]; - if ((tbuf=(char *) malloc(msg->txtlen + 1)) == 0) + if ((tbuf = malloc((unsigned int)(msg->txtlen + 1))) == 0) errx(1, "Out of memory!"); memcpy(tbuf, msg->seekadr, (size_t)msg->txtlen + 1); /* Room to null */ s = tbuf; |