aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--FICS/playerdb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/FICS/playerdb.c b/FICS/playerdb.c
index 19c42c9..3b28e6a 100644
--- a/FICS/playerdb.c
+++ b/FICS/playerdb.c
@@ -1479,8 +1479,8 @@ player_lastdisconnect(int p)
PUBLIC void
player_pend_print(int p, pending *pend)
{
- char outstr[200];
- char tmp[200];
+ char outstr[200] = { '\0' };
+ char tmp[200] = { '\0' };
if (p == pend->whofrom) {
sprintf(outstr, "You are offering ");
@@ -1489,7 +1489,7 @@ player_pend_print(int p, pending *pend)
}
if (p == pend->whoto) {
- strcpy(tmp, "");
+ /* null */;
} else {
sprintf(tmp, "%s ", parray[pend->whoto].name);
}