summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorSteve Bavin <pondlife@pondlife.me>2011-08-26 15:50:16 +0000
committerSteve Bavin <pondlife@pondlife.me>2011-08-26 15:50:16 +0000
commitdbee923b3484cab8ca3ce47433a0a1f914b3ea84 (patch)
treed0ea5f53b224acc20f65864d72c6edf60214812c /apps/plugins
parent89ee922ab6ed66479f86610ba94abfd1d7aef79b (diff)
Fix marginal buffer overflow in chessbox.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30358 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/chessbox/gnuchess.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/chessbox/gnuchess.c b/apps/plugins/chessbox/gnuchess.c
index aaa67a4cec..df52d1350b 100644
--- a/apps/plugins/chessbox/gnuchess.c
+++ b/apps/plugins/chessbox/gnuchess.c
@@ -2378,7 +2378,7 @@ short f,t,flag;
if (t > f) {
rb->strcpy(mvstr2,"o-o");
} else {
- rb->strcpy(mvstr2,"o-o-o");
+ rb->memcpy(mvstr2,"o-o-o", 5);
}
}