[gimp] libgimpbase: return a \0 terminated string from gimp_metadata_get_guid()



commit 3b1916654c630ad4615984db8a1ca301d116ff95
Author: Michael Natterer <mitch gimp org>
Date:   Mon Jul 17 08:20:46 2017 +0200

    libgimpbase: return a \0 terminated string from gimp_metadata_get_guid()

 libgimpbase/gimpmetadata.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgimpbase/gimpmetadata.c b/libgimpbase/gimpmetadata.c
index 56fc8c7..0130a0c 100644
--- a/libgimpbase/gimpmetadata.c
+++ b/libgimpbase/gimpmetadata.c
@@ -215,7 +215,7 @@ gimp_metadata_get_guid (void)
 
 #define DALLOC 36
 
-  GUID = g_malloc0 (DALLOC);
+  GUID = g_malloc0 (DALLOC + 1);
 
   for (bake = 0; bake < DALLOC; bake++)
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]