summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;