do not write in strings: they could reside in ROM

This commit is contained in:
ceriel
1991-03-19 11:14:39 +00:00
parent 6df7f603c4
commit 369c45fa11
2 changed files with 18 additions and 18 deletions

View File

@@ -59,7 +59,6 @@ catch(trapno)
char *errmessage;
char buf[20];
register char *p, *s;
char *q;
while (ep->errno != trapno && ep->errmes != 0) ep++;
if (p = ep->errmes) {
@@ -68,8 +67,8 @@ catch(trapno)
}
else {
int i = trapno;
static char q[] = "error number xxxxxxxxxxxxx";
q = "error number xxxxxxxxxxxxx";
p = &q[13];
s = buf;
if (i < 0) {