[balsa] Allocate enough memory for config urls.
- From: Pawel Salek <pawels src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [balsa] Allocate enough memory for config urls.
- Date: Fri, 22 Jan 2010 18:46:50 +0000 (UTC)
commit 519d367f19db20c3a66668097afb960e03cf1a7d
Author: Pawel Salek <pawsa damage localdomain>
Date: Fri Jan 22 19:46:41 2010 +0100
Allocate enough memory for config urls.
ChangeLog | 4 ++++
libbalsa/misc.c | 2 +-
2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index bb78308..db8743f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-01-22 Pawel Salek
+
+ * libbalsa/misc.c: allocate enough memory for config urls.
+
2010-01-19 Peter Bloomfield
* libbalsa/imap-server.c (libbalsa_imap_server_init):
diff --git a/libbalsa/misc.c b/libbalsa/misc.c
index e3fc523..7d78f2a 100644
--- a/libbalsa/misc.c
+++ b/libbalsa/misc.c
@@ -167,7 +167,7 @@ libbalsa_urldecode(const gchar * str)
gchar *retval;
gchar *x;
- retval = g_new(char, strlen(str));
+ retval = g_new(char, strlen(str)+1);
for (x = retval; *str != '\0'; str++, x++) {
*x = *str;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]