aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--FICS/playerdb.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/FICS/playerdb.c b/FICS/playerdb.c
index ecb90c9..a4142de 100644
--- a/FICS/playerdb.c
+++ b/FICS/playerdb.c
@@ -1483,15 +1483,16 @@ player_pend_print(int p, pending *pend)
char tmp[200] = { '\0' };
if (p == pend->whofrom) {
- sprintf(outstr, "You are offering ");
+ (void)strlcpy(outstr, "You are offering ", sizeof outstr);
} else {
- sprintf(outstr, "%s is offering ", parray[pend->whofrom].name);
+ snprintf(outstr, sizeof outstr, "%s is offering ",
+ parray[pend->whofrom].name);
}
if (p == pend->whoto) {
/* null */;
} else {
- sprintf(tmp, "%s ", parray[pend->whoto].name);
+ snprintf(tmp, sizeof tmp, "%s ", parray[pend->whoto].name);
}
if (strlcat(outstr, tmp, sizeof outstr) >= sizeof outstr) {