summaryrefslogtreecommitdiffstats
path: root/firmware/screendump.c
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2011-12-04 17:17:45 +0000
committerFrank Gevaerts <frank@gevaerts.be>2011-12-04 17:17:45 +0000
commit700e360b612766eb2729597be55c43b5b69bbe7f (patch)
treed48681cffe471d875e3dda0ae3e3d2a01b032734 /firmware/screendump.c
parent346f1e0fc633011228c94e21c33bdfe04ba0bc08 (diff)
downloadrockbox-700e360b612766eb2729597be55c43b5b69bbe7f.tar.gz
rockbox-700e360b612766eb2729597be55c43b5b69bbe7f.tar.bz2
rockbox-700e360b612766eb2729597be55c43b5b69bbe7f.zip
Reduce stack allocation for remote screendump. The screendump filename is generated and known, so we don't need MAX_PATH.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31140 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/screendump.c')
-rw-r--r--firmware/screendump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/screendump.c b/firmware/screendump.c
index 30b9539732..4b431d5958 100644
--- a/firmware/screendump.c
+++ b/firmware/screendump.c
@@ -283,7 +283,7 @@ static const unsigned char rbmpheader[] =
void remote_screen_dump(void)
{
int fd, y;
- char filename[MAX_PATH];
+ char filename[32];
fb_remote_data *src;
#if LCD_REMOTE_DEPTH == 1