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:
parent
dcd4fe6c86
commit
881226fe43
4 changed files with 24 additions and 35 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue