[gthumb] added a comment
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] added a comment
- Date: Wed, 21 Jul 2010 18:34:56 +0000 (UTC)
commit 9495e4c59765c96ba650976d83e781f5970ece4f
Author: Paolo Bacchilega <paobac src gnome org>
Date: Wed Jul 21 19:51:32 2010 +0200
added a comment
gthumb/gio-utils.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gthumb/gio-utils.c b/gthumb/gio-utils.c
index 93ca9e0..1536665 100644
--- a/gthumb/gio-utils.c
+++ b/gthumb/gio-utils.c
@@ -1931,6 +1931,8 @@ g_load_file_in_buffer (GFile *file,
break;
}
+ /* the '+ 1' here is used to allow to add a NULL character at the
+ * end of the buffer. */
local_buffer = g_realloc (local_buffer, count + n + 1);
memcpy (local_buffer + count, tmp_buffer, n);
count += n;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]