Ack.

On 03/14/2012 11:26 PM, Marc-André Lureau wrote:
---
  gtk/spice-channel.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gtk/spice-channel.c b/gtk/spice-channel.c
index 77b066e..be95f00 100644
--- a/gtk/spice-channel.c
+++ b/gtk/spice-channel.c
@@ -1863,7 +1863,7 @@ const gchar* spice_channel_type_to_string(gint type)
      };
      const char *str = NULL;

-    if (type>= 0&&  type<  sizeof(to_string)) {
+    if (type>= 0&&  type<  G_N_ELEMENTS(to_string)) {
          str = to_string[type];
      }

_______________________________________________
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to