txtinfo: use the plugin name in a malloc call
authorFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 26 Nov 2015 14:00:22 +0000 (15:00 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Fri, 27 Nov 2015 09:17:21 +0000 (10:17 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/txtinfo/src/olsrd_txtinfo.c

index 461d3c5..f2212f7 100644 (file)
@@ -857,7 +857,7 @@ static void send_info(unsigned int send_what, int the_socket) {
 
   assert(outbuffer_count < MAX_CLIENTS);
 
-  outbuffer[outbuffer_count] = olsr_malloc(abuf.len, "txt output buffer");
+  outbuffer[outbuffer_count] = olsr_malloc(abuf.len, PLUGIN_NAME" output buffer");
   outbuffer_size[outbuffer_count] = abuf.len;
   outbuffer_written[outbuffer_count] = 0;
   outbuffer_socket[outbuffer_count] = the_socket;