diff options
Diffstat (limited to 'games/xconq/files/patch-kernel__nlang.c')
-rw-r--r-- | games/xconq/files/patch-kernel__nlang.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/games/xconq/files/patch-kernel__nlang.c b/games/xconq/files/patch-kernel__nlang.c new file mode 100644 index 000000000000..ffe94a70e1ae --- /dev/null +++ b/games/xconq/files/patch-kernel__nlang.c @@ -0,0 +1,29 @@ +--- kernel/nlang.c.orig ++++ kernel/nlang.c +@@ -839,7 +839,7 @@ + && strcmp(end, "s'") != 0 + && strcmp(end, "z'") != 0) + sprintf(past_unitbuf, "the "); +- sprintf(past_unitbuf, side_adjective(side2)); ++ sprintf(past_unitbuf, "%s", side_adjective(side2)); + strcat(past_unitbuf, " "); + } + /* Now add the past_unit's unique description. */ +@@ -1035,7 +1035,7 @@ + && find_event_type(pattern) == hevt->type) { + text = cadr(head); + if (stringp(text)) { +- sprintf(buf, c_string(text)); ++ sprintf(buf, "%s", c_string(text)); + } else { + sprintlisp(buf, text, 50); + } +@@ -1046,7 +1046,7 @@ + ) { + text = cadr(head); + if (stringp(text)) { +- sprintf(buf, c_string(text)); ++ sprintf(buf, "%s", c_string(text)); + } else { + event_desc_from_list(side, text, hevt, buf); + } |