diff options
| author | Dave Chapman <dave@dchapman.com> | 2006-01-20 21:02:17 +0000 |
|---|---|---|
| committer | Dave Chapman <dave@dchapman.com> | 2006-01-20 21:02:17 +0000 |
| commit | 57b1ccba2bd2b49a1fe6248878f5afec6676fe70 (patch) | |
| tree | 2e0e87df6ef4a30ff48a2a3fff75649146af9e50 /apps/plugins | |
| parent | e8f8d9e7e93bd211a754b0722977f5ac72a4ba30 (diff) | |
| download | rockbox-57b1ccba2bd2b49a1fe6248878f5afec6676fe70.zip rockbox-57b1ccba2bd2b49a1fe6248878f5afec6676fe70.tar.gz rockbox-57b1ccba2bd2b49a1fe6248878f5afec6676fe70.tar.bz2 rockbox-57b1ccba2bd2b49a1fe6248878f5afec6676fe70.tar.xz | |
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
Diffstat (limited to 'apps/plugins')
| -rw-r--r-- | apps/plugins/sudoku.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/plugins/sudoku.c b/apps/plugins/sudoku.c index f6342c4..1d8e72f 100644 --- a/apps/plugins/sudoku.c +++ b/apps/plugins/sudoku.c @@ -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; |