Changeset 634


Ignore:
Timestamp:
May 11, 2011, 1:26:07 AM (7 years ago)
Author:
Sam Hocevar
Message:

sdlport: fix a crash in the SFX directory detection.

File:
1 edited

Legend:

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

    r633 r634  
    5555    // Check for the sfx directory, disable sound if we can't find it.
    5656    datadir = get_filename_prefix();
    57     sfxdir = (char *)malloc(strlen(datadir) + 5 + 1);
     57    sfxdir = (char *)malloc(strlen(datadir) + 17 + 1);
    5858    sprintf(sfxdir, "%s/sfx/ambcave1.wav", datadir);
    5959    FILE *f = fopen(sfxdir, "r");
Note: See TracChangeset for help on using the changeset viewer.