Color str_duping problem
Date: 11/10/97

Here's what I believe to be the problem I am having, I have a string that
I sprintf to, like sprintf(buf,"&RHello world&w"); with the color codes
in, then if I do a str_dup, or manipulate it, I get out of bounds problems
and all other sorts of fun memory over running problems, I THINK its from,
When the string is allocated, its allocated for 15 chars, including the &w
and &R.  Then when its actually printed out, or passed through the
proc_color, the &R is now replaced with the acutal ansi code for changing
the color which is quite larger then &R.  So, as you can see, when its
free and such I get problems, I was wondering if anyone else has
encountered this problem, and knows how to fix it ?


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

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