projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Comment polishing.
[open-adventure.git]
/
actions.c
diff --git
a/actions.c
b/actions.c
index 0aa7d9302decd3ed14d01719a5e8441d299b883d..980352f348dc201f3fff5bb87e8db09481f86316 100644
(file)
--- a/
actions.c
+++ b/
actions.c
@@
-419,8
+419,13
@@
static int chain(verb_t verb)
switch (game.prop[BEAR]) {
case BEAR_DEAD:
switch (game.prop[BEAR]) {
case BEAR_DEAD:
+ // LCOV_EXCL_START
+ /* 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;
break;
game.fixed[BEAR] = IS_FIXED;
break;
+ // LCOV_EXCL_STOP
default:
game.fixed[BEAR] = IS_FREE;
}
default:
game.fixed[BEAR] = IS_FREE;
}
@@
-1114,7
+1119,7
@@
static int say(struct command_t *command)
{
if (command->wd2 > 0) {
command->wd1 = command->wd2;
{
if (command->wd2 > 0) {
command->wd1 = command->wd2;
- str
cpy(command->raw1, command->raw2
);
+ str
ncpy(command->raw1, command->raw2, LINESIZE - 1
);
}
char word1[TOKLEN + 1];
packed_to_token(command->wd1, word1);
}
char word1[TOKLEN + 1];
packed_to_token(command->wd1, word1);