summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugins/chessbox/chessbox_pgn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/chessbox/chessbox_pgn.c b/apps/plugins/chessbox/chessbox_pgn.c
index f5f19e2688..4e16834f5c 100644
--- a/apps/plugins/chessbox/chessbox_pgn.c
+++ b/apps/plugins/chessbox/chessbox_pgn.c
@@ -48,7 +48,7 @@ static void *pl_malloc(size_t size)
48 } 48 }
49 else 49 else
50 { 50 {
51 bufptr += size; 51 bufptr = (char*)(bufptr) + size;
52 bufleft -= size; 52 bufleft -= size;
53 return ptr; 53 return ptr;
54 } 54 }