Changeset 9


Ignore:
Timestamp:
Nov 10, 2005, 5:15:07 PM (17 years ago)
Author:
Sam Hocevar
Message:
  • minor cosmetic changes
Location:
abuse/trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/game.cpp

    r4 r9  
    14221422//      ProfilerInit(collectDetailed, bestTimeBase, 2000, 200); //prof
    14231423        char *fastpath;
    1424         fastpath = (char *)jmalloc( strlen( get_save_filename_prefix() ) + 13, "fastpath" );
     1424        fastpath = (char *)jmalloc( strlen( get_save_filename_prefix() ) + 12 + 1, "fastpath" );
    14251425        sprintf( fastpath, "%sfastload.dat", get_save_filename_prefix() );
    14261426        fast_load_start_recording( fastpath );
  • abuse/trunk/src/loader2.cpp

    r4 r9  
    286286# if 0
    287287        char *cachepath;
    288         cachepath = (char *)jmalloc( strlen( get_save_filename_prefix() ) + 12, "cachepath" );
     288        cachepath = (char *)jmalloc( strlen( get_save_filename_prefix() ) + 12 + 1, "cachepath" );
    289289        sprintf( cachepath, "%ssd_cache.tmp", get_save_filename_prefix() );
    290290
Note: See TracChangeset for help on using the changeset viewer.