summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDusan Durech <dusan.d@Centrum.sk>2009-05-03 21:18:30 +0200
committerDusan Durech <dusan.d@Centrum.sk>2009-05-03 21:18:30 +0200
commit0d794d4af8446795ae958f8bda1c9c0e4fb8b5d1 (patch)
tree7698f9bb599a175e1155ddeed17c39dde059ed02
parentbcbbbcad456167564c545a5a06d71ddd37352219 (diff)
fix bug, with resevered score on panel
-rw-r--r--src/base/buffer.c2
-rw-r--r--src/client/panel.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/base/buffer.c b/src/base/buffer.c
index a78bb14..04e77a5 100644
--- a/src/base/buffer.c
+++ b/src/base/buffer.c
@@ -49,7 +49,7 @@ int buffer_cut(buffer_t * p, int len)
assert(p != NULL);
assert(len >= 0);
- if (p->size - len > 0) {
+ if (p->size - len >= 0) {
memmove(p->data, p->data + len, p->size - len);
p->size -= len;
return 0;
diff --git a/src/client/panel.c b/src/client/panel.c
index 1d7846a..634cd2d 100644
--- a/src/client/panel.c
+++ b/src/client/panel.c
@@ -49,7 +49,7 @@ void panel_init()
isPanelInit = TRUE;
}
-static void drawScore(tux_t * tux_right, tux_t * tux_left)
+static void drawScore(tux_t *tux_left, tux_t *tux_right)
{
char strScoreLine[STR_SIZE];
int w, h;