X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=main.c;h=dbdaef9c9d081d900c7f579bab267e38056fee08;hp=972e30f582a484fa7ae03acf3472950f72ca1335;hb=6ae7d0bf1628f3d61cb06d7e4ce93df36acde586;hpb=d739c111d76d401ca38ea90c7851bb82ffe9caf1 diff --git a/main.c b/main.c index 972e30f..dbdaef9 100644 --- a/main.c +++ b/main.c @@ -433,9 +433,7 @@ static bool dwarfmove(void) } } - /* Now we know what's happening. Let's tell the poor sucker about it. - * Note that various of the "knife" messages must have specific relative - * positions in the rspeak database. */ + /* Now we know what's happening. Let's tell the poor sucker about it. */ if (game.dtotal == 0) return true; rspeak(game.dtotal == 1 ? DWARF_SINGLE : DWARF_PACK, game.dtotal); @@ -613,8 +611,6 @@ static void playermove( int motion) case NW: case SW: case SE: - rspeak(BAD_DIRECTION); - break; case UP: case DOWN: rspeak(BAD_DIRECTION); @@ -1199,7 +1195,7 @@ Laction: case GO_WORD2: /* Get second word for analysis. */ command.wd1 = command.wd2; - strcpy(command.raw1, command.raw2); + strncpy(command.raw1, command.raw2, LINESIZE - 1); wordclear(&command.wd2); command.raw2[0] = '\0'; goto L2620;