I tried putting in inbuf = (char*) realloc(inbuf,(strlen(out_buf) * sizeof(char))+sizeof(char)); right before the strcpy in color.c and it crashes, I put a &w right after the entrance screen, where it says "enter your name: &w" I do notice that inbuf is null! whadda ya guys think ? Sorren 0 0x40075f61 in __kill () #1 0x4004207d in gsignal () #2 0xbfff73b4 in ?? () #3 0xbfff74bc in ?? () #4 0x8098c44 in DBstrcpy (file=0x0, line=0, str1=0x0, str2=0xbfff75c8 "\r\nColor is off.\r\n\r\n\r\n", ' ' <repeats 35 times>, "Cy berspace\r\n\r\n", ' ' <repeats 28 times>, "Based on CircleMUD 3.0,\r\n", ' ' <r epeats 28 times>, "Created by Jeremy Elson\r\n\r\n", ' ' <repeats 22 times>...) at string.c:481 #5 0x8098bea in strcpy (str1=0x0, str2=0xbfff75c8 "\r\nColor is off.\r\n\r\n\r\n", ' ' <repeats 35 times>, "Cy berspace\r\n\r\n", ' ' <repeats 28 times>, "Based on CircleMUD 3.0,\r\n", ' ' <r epeats 28 times>, "Created by Jeremy Elson\r\n\r\n", ' ' <repeats 22 times>...) at string.c:459 #6 0x806dc02 in proc_color (inbuf=0x0, colour=0) at color.c:150 #7 0x806f61b in process_output (t=0x8234aec) at comm.c:1238 #8 0x806e7ee in game_loop (mother_desc=3) at comm.c:622 #9 0x806df01 in init_game (port=4000) at comm.c:250 #10 0x806de8a in main (argc=3, argv=0xbffffbd4) at comm.c:220 #11 0x804962e in ___crt_dummy__ () +------------------------------------------------------------+ | 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