opnsense-ports/games/xconq/files/patch-kernel__nlang.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

29 lines
834 B
C

--- 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);
}