[evolution-ews] Bug 678321 - Bug in usage of signed/unsigned crashes downloading of GAL
- From: David Woodhouse <dwmw2 src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Bug 678321 - Bug in usage of signed/unsigned crashes downloading of GAL
- Date: Tue, 19 Jun 2012 22:43:19 +0000 (UTC)
commit 80c84255f1a212529b0eeccd8831aee64873ef5e
Author: derolf <rolf danielrolf com>
Date: Thu Jun 14 11:35:39 2012 +0300
Bug 678321 - Bug in usage of signed/unsigned crashes downloading of GAL
src/addressbook/ews-oab-decoder.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/addressbook/ews-oab-decoder.c b/src/addressbook/ews-oab-decoder.c
index a891a4c..da194da 100644
--- a/src/addressbook/ews-oab-decoder.c
+++ b/src/addressbook/ews-oab-decoder.c
@@ -345,15 +345,14 @@ ews_oab_read_uint16 (GInputStream *is,
GCancellable *cancellable,
GError **error)
{
- gchar *str = g_malloc0 (2);
+ guchar str[2];
guint16 ret = 0;
g_input_stream_read (is, str, 2, cancellable, error);
if (!*error)
ret = EndGetI16 (str);
- g_free (str);
- return ret;
+ return ret;
}
static gint
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]