[Bugfix] Found a bug in haddix's drunk code

From: Rob Baumstark (shirak@CONNECT.AB.CA)
Date: 07/18/97


For all of you that are using the drunk code found on the snippets site,
there is a bug caused by it when you use very long strings, it overwrites
an array.
To fix it, in comm.c in game_loop(...), change:
  char comm[MAX_INPUT_LENGTH];
to:
  char comm[MAX_STRING_LENGTH];

That will allow you to say sentences as long as you want when you're drunk.

     Rob Baumstark:   shirak@connect.ab.ca
                      cst0656@nait.ab.ca
   Forsaken Realms:   telnet://drewl.v-wave.com:4000


     +------------------------------------------------------------+
     | 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/08/00 PST