summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2008-08-19 12:16:04 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2008-08-19 12:16:04 +0000
commit5bca7a42bab971034af44462f773e9e5225d3588 (patch)
tree7372553d79759a9a296024bda00a3cd23918ba06 /apps/plugins
parenta3b9bfc763e0918803329d2d7445ffc460024683 (diff)
downloadrockbox-5bca7a42bab971034af44462f773e9e5225d3588.tar.gz
rockbox-5bca7a42bab971034af44462f773e9e5225d3588.zip
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/plugins')
-rw-r--r--apps/plugins/chessbox/chessbox_pgn.c1
-rw-r--r--apps/plugins/dict.c1
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)
51 else 51 else
52 { 52 {
53 bufptr += size; 53 bufptr += size;
54 bufleft -= size;
54 return ptr; 55 return ptr;
55 } 56 }
56} 57}
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)
79 else 79 else
80 { 80 {
81 bufptr += size; 81 bufptr += size;
82 bufleft -= size;
82 return ptr; 83 return ptr;
83 } 84 }
84} 85}