switch (game.prop[BEAR]) {
case BEAR_DEAD:
- game.fixed[BEAR] = IS_FIXED;
+ /* Can't be reached as long as the only way for the bear to die
+ * is from a bridge collapse. Leave in in case this changes, but
+ * exclude from coverage testing. */
+ game.fixed[BEAR] = IS_FIXED; // LCOV_EXCL_LINE
break;
default:
game.fixed[BEAR] = IS_FREE;
{
if (command->wd2 > 0) {
command->wd1 = command->wd2;
- strcpy(command->raw1, command->raw2);
+ strncpy(command->raw1, command->raw2, LINESIZE - 1);
}
char word1[TOKLEN + 1];
packed_to_token(command->wd1, word1);