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 | |
parent | a3b9bfc763e0918803329d2d7445ffc460024683 (diff) | |
download | rockbox-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
-rw-r--r-- | apps/plugins/chessbox/chessbox_pgn.c | 1 | ||||
-rw-r--r-- | apps/plugins/dict.c | 1 | ||||
-rw-r--r-- | docs/CREDITS | 1 |
3 files changed, 3 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 | } |
diff --git a/docs/CREDITS b/docs/CREDITS index a43cc50ba4..56bbcd3501 100644 --- a/docs/CREDITS +++ b/docs/CREDITS | |||
@@ -409,6 +409,7 @@ Takumi Suzuki | |||
409 | Shunsuke Shimizu | 409 | Shunsuke Shimizu |
410 | Tadayuki Nishizono | 410 | Tadayuki Nishizono |
411 | Jun Gu | 411 | Jun Gu |
412 | Daniel Weck | ||
412 | 413 | ||
413 | The libmad team | 414 | The libmad team |
414 | The wavpack team | 415 | The wavpack team |