Ok...I have the strings saved to the DB as they would be saved to the pfiles 
for unlimited bits..
0 256 -1 
that sorta thing...now i'm trying to read them back and set them on the player 
from the DB...if you have the exact function and call please reply, if 
not...tell me why this happens..

i made the function str_fread_flag2 and am calling it with 
STR_COPY_STR(ch->act, str_fread_flag2(row[29], ACT_FLAGS), ACT_FLAGS);

now, when I call it when the first lines of the function looks like so....
FLAG *str_fread_flag2( char *txt, const int size )
{

        int i = 0;
        int number;
/*        char buf[MSL]; */
        static FLAG flag[MAX_FLAGS];
/*        buf[0] = '\0'; */
in GDB i see it calling the function with
txt = "0 256 -1" size = 2
thats all good...now...when I UNCOMMENT the char buf
and buf[0]...it changes this to garbage

Breakpoint 1, str_fread_flag2 (txt=0xbfffe760 " v", size=13) at bitsys.c:125

Anyone have any clues or need more info....also if you basicly have the same 
setup, with the unlimited bits info saving to the database as a string just as 
it would to the pfile, and you have a way to read it back clearly...let me see 
that too :)

Thanks in advance...
Stephen

Reply via email to