[Olsr-dev] [PATCH v1 15/44] txtinfo: use the plugin name in a malloc call

Ferry Huberts (spam-protected)
Fri Nov 27 10:43:08 CET 2015


From: Ferry Huberts <(spam-protected)>

Signed-off-by: Ferry Huberts <(spam-protected)>
---
 lib/txtinfo/src/olsrd_txtinfo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/txtinfo/src/olsrd_txtinfo.c b/lib/txtinfo/src/olsrd_txtinfo.c
index 461d3c5..f2212f7 100644
--- a/lib/txtinfo/src/olsrd_txtinfo.c
+++ b/lib/txtinfo/src/olsrd_txtinfo.c
@@ -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;
-- 
2.5.0




More information about the Olsr-dev mailing list