diff options
| author | Dusan Durech <dusan.d@Centrum.sk> | 2009-05-03 21:18:30 +0200 |
|---|---|---|
| committer | Dusan Durech <dusan.d@Centrum.sk> | 2009-05-03 21:18:30 +0200 |
| commit | 0d794d4af8446795ae958f8bda1c9c0e4fb8b5d1 (patch) | |
| tree | 7698f9bb599a175e1155ddeed17c39dde059ed02 /src | |
| parent | bcbbbcad456167564c545a5a06d71ddd37352219 (diff) | |
fix bug, with resevered score on panel
Diffstat (limited to 'src')
| -rw-r--r-- | src/base/buffer.c | 2 | ||||
| -rw-r--r-- | src/client/panel.c | 2 |
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; |