diff options
| author | mycroft <mycroft@NetBSD.org> | 1993-12-02 03:07:18 +0000 |
|---|---|---|
| committer | mycroft <mycroft@NetBSD.org> | 1993-12-02 03:07:18 +0000 |
| commit | 5559c73bc37e0d48b66a2ffbb12bc77c3eabf030 (patch) | |
| tree | f5256270611b8404534d4526c23ec9a9c5e65f59 /games/hack/hack.pri.c | |
| parent | a49e6f5cbe0892cef8cedcaf5e5ac0f6314fb6bf (diff) | |
Don't try to write into a string constant.
Reported by Dan Muntz <dmuntz@eecs.umich.edu>.
Diffstat (limited to 'games/hack/hack.pri.c')
| -rw-r--r-- | games/hack/hack.pri.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/games/hack/hack.pri.c b/games/hack/hack.pri.c index aae52d5ebc8..7e5eb893282 100644 --- a/games/hack/hack.pri.c +++ b/games/hack/hack.pri.c @@ -3,7 +3,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: hack.pri.c,v 1.2 1993/08/02 17:19:16 mycroft Exp $"; +static char rcsid[] = "$Id: hack.pri.c,v 1.3 1993/12/02 03:07:18 mycroft Exp $"; #endif /* not lint */ #include "hack.h" @@ -15,7 +15,7 @@ extern char *CD; swallowed() { - char *ulook = "|@|"; + char ulook[] = "|@|"; ulook[1] = u.usym; cls(); |
