Re: [Code] [Stock bug?] write_to_ouput oops. :-) <>

From: Jeremy Elson (jelson@CIRCLEMUD.ORG)
Date: 07/15/98

John Woods writes:
>    CREATE(t->large_outbuf->text, char, LARGE_BUFSIZE);
>Then I looked at it again, and realized that it was using "char" in there.
>That's not even a variable in the function. Looks like a bug. Anyone tell me
>if I'm right or wrong?

This is confusing, I admit, because CREATE() is a macro and not a
function.  The second argument to create is supposed to be a type so
that the return value of malloc() can be typecast.  If CREATE() is
failing it might indicate you're out of memory.


     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

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