Re: [GDB] help with output

From: d. hall (dhall@APK.NET)
Date: 01/07/98


// thus on Wed, 7 Jan 1998 14:00:22 +0000, Demond virtually wrote:

> Ok Gdb gave me this error on my clanlist command:
> Core was generated by `bin/circle -q 6050'.
> Program terminated with signal 11, Segmentation fault.
> Reading symbols from /lib/libc.so.5.3.12...done.
> Reading symbols from /lib/ld-linux.so.1...done.
> #0  0x4003c2d3 in _IO_vfprintf ()

> ACMD(do_complist)
> {
>   int i;
>   char buf[MAX_STRING_LENGTH];

>   for (i = 1; i < MAX_CLAN; i++) {
>     sprintf(buf, "%s Company\r\n", clan[MAX_CLAN].clan_name);
>   }

Shouldn't this be

      sprintf(buf, "%s Company\r\n", clan[i].clan_name);

d.


     +------------------------------------------------------------+
     | 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