info: fix mistake in previous commit
authorFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 14 Apr 2016 20:14:06 +0000 (22:14 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 14 Apr 2016 20:14:22 +0000 (22:14 +0200)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/info/olsrd_info.c

index de0c418..4fc179b 100644 (file)
@@ -675,7 +675,7 @@ static void ipc_action(int fd, void *data __attribute__ ((unused)), unsigned int
       requ[0] = '\0';
     }
 
-    if (s <= 0) {
+    if (s >= 0) {
       requ[s] = '\0';
 
       req = requ;