diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2008-08-19 12:16:04 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2008-08-19 12:16:04 +0000 |
commit | 5bca7a42bab971034af44462f773e9e5225d3588 (patch) | |
tree | 7372553d79759a9a296024bda00a3cd23918ba06 /apps | |
parent | a3b9bfc763e0918803329d2d7445ffc460024683 (diff) |
Fix a problem with dict and checkbox where their internal buffer allocaters wernt actually fixing the amount of freespace after an alloc (Spotted and fixed by Daniel Weck)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18317 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/chessbox/chessbox_pgn.c | 1 | ||||
-rw-r--r-- | apps/plugins/dict.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/apps/plugins/chessbox/chessbox_pgn.c b/apps/plugins/chessbox/chessbox_pgn.c index 9e9656207b..1aff214332 100644 --- a/apps/plugins/chessbox/chessbox_pgn.c +++ b/apps/plugins/chessbox/chessbox_pgn.c @@ -51,6 +51,7 @@ void *pl_malloc(ssize_t size) else { bufptr += size; + bufleft -= size; return ptr; } } diff --git a/apps/plugins/dict.c b/apps/plugins/dict.c index f893be3422..db121f7510 100644 --- a/apps/plugins/dict.c +++ b/apps/plugins/dict.c @@ -79,6 +79,7 @@ void *pl_malloc(ssize_t size) else { bufptr += size; + bufleft -= size; return ptr; } } |