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 | 1c12287131d94d97a43442c4e787449541bbf342 (patch) | |
tree | fb3587fc28df8a29f8b6d7d286da02858c30cdb5 /hack/hack.pri.c | |
parent | 30cb2b6cbaced96c2e387e6acd345d88470e644a (diff) | |
download | bsdgames-darwin-1c12287131d94d97a43442c4e787449541bbf342.tar.gz bsdgames-darwin-1c12287131d94d97a43442c4e787449541bbf342.tar.zst bsdgames-darwin-1c12287131d94d97a43442c4e787449541bbf342.zip |
Don't try to write into a string constant.
Reported by Dan Muntz <dmuntz@eecs.umich.edu>.
Diffstat (limited to 'hack/hack.pri.c')
-rw-r--r-- | hack/hack.pri.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hack/hack.pri.c b/hack/hack.pri.c index aae52d5e..7e5eb893 100644 --- a/hack/hack.pri.c +++ b/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(); |