Fixed a buffer overrun in the skin reading... make saving the config work again...

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@719 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues
2009-04-04 18:41:04 +00:00
parent 8b29381699
commit be1da7b6a6
4 changed files with 14 additions and 10 deletions

1
main.c
View File

@@ -646,6 +646,7 @@ void Program_shutdown(void)
free(Main_screen);
// On prend bien soin de passer dans le répertoire initial:
DEBUG(Initial_directory,1);
if (chdir(Initial_directory)!=-1)
{
// On sauvegarde les données dans le .CFG et dans le .INI