forked from len0rd/rockbox
gcc 4.0.2 uses memcpy() to initialise variables on the stack, so we explicitly use rb->memcpy instead
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8401 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e8f8d9e7e9
commit
57b1ccba2b
1 changed files with 5 additions and 2 deletions
|
@ -2096,8 +2096,11 @@ bool save_sudoku(struct sudoku_state_t* state) {
|
|||
int fd;
|
||||
int r,c;
|
||||
int i;
|
||||
char line[]="...|...|...\r\n";
|
||||
char sep[]="-----------\r\n";
|
||||
char line[16];
|
||||
char sep[16];
|
||||
|
||||
rb->memcpy(line,"...|...|...\r\n",13);
|
||||
rb->memcpy(sep,"-----------\r\n",13);
|
||||
|
||||
if (state->filename[0]==0) {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue