extra control characters in panic messages

I noticed a few panic messages contained newlines, and one included a naked
carriage return.  panic() adds a newline itself, and also generally ensures
the message will be on a new line (the initial "oops" ensures the message
itself will be on a new lines).  This patch removes the unneeded characters.
This commit is contained in:
cohrs
2003-10-23 01:30:05 +00:00
parent cc5bea4fbf
commit cc52b2f533
4 changed files with 11 additions and 11 deletions

View File

@@ -60,7 +60,7 @@ dlb *stream;
if ((cnt = dlb_fread(ptr, size, nitems, stream)) != nitems) {
panic("PREMATURE EOF ON QUEST TEXT FILE!\nExpected %d bytes - got %d\n",
panic("PREMATURE EOF ON QUEST TEXT FILE! Expected %d bytes, got %d",
(size * nitems), (size * cnt));
}
}
@@ -96,7 +96,7 @@ load_qtlist()
msg_file = dlb_fopen(QTEXT_FILE, RDBMODE);
if (!msg_file)
panic("\rCANNOT OPEN QUEST TEXT FILE %s.", QTEXT_FILE);
panic("CANNOT OPEN QUEST TEXT FILE %s.", QTEXT_FILE);
/*
* Read in the number of classes, then the ID's & offsets for