From 1c12287131d94d97a43442c4e787449541bbf342 Mon Sep 17 00:00:00 2001 From: mycroft Date: Thu, 2 Dec 1993 03:07:18 +0000 Subject: Don't try to write into a string constant. Reported by Dan Muntz . --- hack/hack.pri.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hack/hack.pri.c') 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(); -- cgit v1.2.3-56-ge451