[FIX] feature value transition to ld preloaded lib 33/26333/1
authorVitaliy Cherepanov <v.cherepanov@samsung.com>
Wed, 20 Aug 2014 16:49:16 +0000 (20:49 +0400)
committerVitaliy Cherepanov <v.cherepanov@samsung.com>
Wed, 20 Aug 2014 16:49:16 +0000 (20:49 +0400)
Change-Id: Ic5b075cf2948d2eafda5bb8cedcb5b561dacad00
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
daemon/daemon.c

index 2ce8aab..3d91341 100644 (file)
@@ -623,8 +623,8 @@ static int targetServerHandler(void)
 
                /* send config message to target process */
                log.type = MSG_OPTION;
-               log.length = sprintf(log.data, "%llu",
-                                    prof_session.conf.use_features0);
+               log.length = sprintf(log.data, "%llu\0",
+                                    prof_session.conf.use_features0) + 1;
                if (0 > send(manager.target[index].socket, &log,
                             sizeof(log.type) + sizeof(log.length) + log.length,
                             MSG_NOSIGNAL))