From 5bca7a42bab971034af44462f773e9e5225d3588 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Tue, 19 Aug 2008 12:16:04 +0000 Subject: 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 --- apps/plugins/chessbox/chessbox_pgn.c | 1 + apps/plugins/dict.c | 1 + docs/CREDITS | 1 + 3 files changed, 3 insertions(+) diff --git a/apps/plugins/chessbox/chessbox_pgn.c b/apps/plugins/chessbox/chessbox_pgn.c index 9e96562..1aff214 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 f893be3..db121f7 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; } } diff --git a/docs/CREDITS b/docs/CREDITS index a43cc50..56bbcd3 100644 --- a/docs/CREDITS +++ b/docs/CREDITS @@ -409,6 +409,7 @@ Takumi Suzuki Shunsuke Shimizu Tadayuki Nishizono Jun Gu +Daniel Weck The libmad team The wavpack team -- cgit v1.1