Bug fix for signal hash(bloom filter) operations in gdbus-transport-kdbus 08/76508/1 accepted/tizen/common/20160627.191800 submit/tizen/20160624.064345
authorINSUN PYO <insun.pyo@samsung.com>
Fri, 24 Jun 2016 06:40:22 +0000 (15:40 +0900)
committerINSUN PYO <insun.pyo@samsung.com>
Fri, 24 Jun 2016 06:41:14 +0000 (15:41 +0900)
Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: Ic051ee89a2e7bfb3c105be289082ebc5b6a94e88

gio/gkdbus.c

index a60a865..4aff952 100755 (executable)
@@ -1632,7 +1632,7 @@ g_kdbus_bloom_add_pair (GKDBusWorker  *worker,
   gsize size;
 
   size = strlen(parameter) + strlen(value) + 1;
-  if (size > 1024)
+  if (size >= 1024)
     return;
 
   strcpy(stpcpy(stpcpy(buf, parameter), ":"), value);
@@ -1650,7 +1650,7 @@ g_kdbus_bloom_add_prefixes (GKDBusWorker  *worker,
   gsize size;
 
   size = strlen(parameter) + strlen(value) + 1;
-  if (size > 1024)
+  if (size >= 1024)
     return;
 
   strcpy(stpcpy(stpcpy(buf, parameter), ":"), value);