1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-10-19 21:09:29 +00:00

Minor cosmetic fixes + prevent heap overflow after on taking more than 99999999 screenshots

Gotta be correct!!11
This commit is contained in:
fgenesis 2016-07-14 05:01:30 +02:00
commit 881226fe43
4 changed files with 24 additions and 35 deletions

View file

@ -2861,7 +2861,7 @@ int Core::tgaSaveSeries(char *filename,
// compute the new filename by adding the
// series number and the extension
newFilename = (char *)malloc(sizeof(char) * strlen(filename)+8);
newFilename = (char *)malloc(sizeof(char) * strlen(filename)+16);
sprintf(newFilename,"%s%d",filename,numSavedScreenshots);
@ -2875,11 +2875,10 @@ int Core::tgaSaveSeries(char *filename,
return(status);
}
void Core::screenshot()
{
doScreenshot = true;
}
void Core::screenshot()
{
doScreenshot = true;
}
#include "DeflateCompressor.h"