Changeset 6


Ignore:
Timestamp:
Nov 6, 2005, 6:27:27 PM (16 years ago)
Author:
Sam Hocevar
Message:
  • fixed buffer overflow
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/sdlport/setup.cpp

    r4 r6  
    360360        if( (homedir = getenv( "HOME" )) != NULL )
    361361        {
    362                 savedir = (char *)jmalloc( strlen( homedir ) + 8, "savedir" );
     362                savedir = (char *)jmalloc( strlen( homedir ) + 9, "savedir" );
    363363                sprintf( savedir, "%s/.abuse/", homedir );
    364364                // Check if we already have a savegame directory
Note: See TracChangeset for help on using the changeset viewer.