Changeset 3079

Show
Ignore:
Timestamp:
01/28/00 17:04:22 (15 years ago)
Author:
ucaccsp
Message:

Sigh. Must malloc() before sprintf(). rat now works again.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • rat/trunk/main_engine.c

    r3078 r3079  
    129129 
    130130        /* Initialise our mbus interface... once this is done we can talk to our controller */ 
     131        sp->mbus_engine_addr = (char *) xmalloc(strlen(MBUS_ADDR_ENGINE) + 3); 
    131132        sprintf(sp->mbus_engine_addr, MBUS_ADDR_ENGINE, (uint32_t) getpid()); 
    132         sp->mbus_engine_addr = (char *) xmalloc(strlen(MBUS_ADDR_ENGINE) + 3); 
    133133        sp->mbus_engine      = mbus_init(mbus_engine_rx, mbus_error_handler, sp->mbus_engine_addr); 
    134134