Re: More uh. yep. Dynamic Board stuff.

From: George (greerga@CIRCLEMUD.ORG)
Date: 03/04/98


On Wed, 4 Mar 1998, Sammy wrote:

>@@ -2060,8 +2060,8 @@ char *fread_string(FILE * fl, char *erro
>       exit(1);
>     }
>     /* If there is a '~', end the string; else put an "\r\n" over the '\n'. */
>-    if ((point = strchr(tmp, '~')) != NULL) {
>-      *point = '\0';
>+    if (*tmp == '~') {
>+      *tmp = '\0';
>       done = 1;
>     } else {
>       point = tmp + strlen(tmp) - 1;

Have you run this?

I note that the room name is loaded via fread_string and the tilde is
always at the end of the string.  With this change would it not seem to
fail to find the tilde to terminate?

(Which is why I took the idea to kill tildes instead of the fread_string
part.)

--
George Greer  -  Me@Null.net   | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST