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

4
init.c
View File

@@ -230,8 +230,8 @@ void Center_GUI_cursor(byte *cursor_buffer, int cursor_number)
Cursor_offset_X[cursor_number]=14-start_x;
Cursor_offset_Y[cursor_number]=14-start_y;
for (y=0;y<29;y++)
for (x=0;x<29;x++)
for (y=0;y<CURSOR_SPRITE_HEIGHT;y++)
for (x=0;x<CURSOR_SPRITE_WIDTH;x++)
GFX_cursor_sprite[cursor_number][y][x]=cursor_buffer[(start_y+y)*29+start_x+x];
}