diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-04-08 18:09:29 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-04-08 18:09:29 +0000 |
commit | 9fd066f39f37e89a2459993da93ac661a79069ed (patch) | |
tree | cb116263659bbe04eda8bdc3fb516eac59ba03be /games/atc/update.c | |
parent | 13b4b54524bdc9b77efbbb7815a5800a0831456b (diff) |
string cleaning; ok pjanzen
Diffstat (limited to 'games/atc/update.c')
-rw-r--r-- | games/atc/update.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/games/atc/update.c b/games/atc/update.c index 1df33e4d331..b88bcbaa441 100644 --- a/games/atc/update.c +++ b/games/atc/update.c @@ -1,4 +1,4 @@ -/* $OpenBSD: update.c,v 1.6 2003/04/06 18:50:36 deraadt Exp $ */ +/* $OpenBSD: update.c,v 1.7 2003/04/08 18:09:28 deraadt Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -49,7 +49,7 @@ #if 0 static char sccsid[] = "@(#)update.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: update.c,v 1.6 2003/04/06 18:50:36 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: update.c,v 1.7 2003/04/08 18:09:28 deraadt Exp $"; #endif #endif /* not lint */ @@ -240,7 +240,7 @@ command(pp) (void)snprintf(bp, buf + sizeof buf - bp, "Holding @ A%d", pp->orig_no); else if (pp->new_dir >= MAXDIR || pp->new_dir < 0) - strcpy(bp, "Circle"); + strlcpy(bp, "Circle", buf + sizeof buf - bp); else if (pp->new_dir != pp->dir) (void)snprintf(bp, buf + sizeof buf - bp, "%d", dir_deg(pp->new_dir)); @@ -253,7 +253,7 @@ command(pp) bp = strchr(buf, '\0'); if (*comm_start == '\0' && (pp->status == S_UNMARKED || pp->status == S_IGNORED)) - strcpy(bp, "---------"); + strlcpy(bp, "---------", buf + sizeof buf - bp); return (buf); } |