[gtk-vnc] Fix logic for removing unwanted encodings
- From: Jonh Wendell <jwendell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-vnc] Fix logic for removing unwanted encodings
- Date: Thu, 2 Sep 2010 14:24:27 +0000 (UTC)
commit 92eff8f475141f56b9576d3974767f0db0a4005c
Author: Jonh Wendell <jwendell gnome org>
Date: Thu Sep 2 11:16:47 2010 -0300
Fix logic for removing unwanted encodings
src/vncdisplay.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/vncdisplay.c b/src/vncdisplay.c
index 9ef9841..65b8c3b 100644
--- a/src/vncdisplay.c
+++ b/src/vncdisplay.c
@@ -1263,10 +1263,9 @@ static void on_initialized(VncConnection *conn G_GNUC_UNUSED,
#define REMOVE_ENCODING(e) \
for (i = 0 ; i < n_encodings ; i++) { \
if (encodings[i] == e) { \
- encodings[i] = 0; \
if (i < (n_encodings - 1)) \
- memmove(encodings, \
- encodings + i, \
+ memmove(encodings + i, \
+ encodings + (i + 1), \
sizeof(gint32) * \
(n_encodings - (i + 1))); \
n_encodings--; \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]