From 2689016a9b05866591066511db585f62d69d9771 Mon Sep 17 00:00:00 2001 From: Stéphane Raimbault Date: Wed, 11 May 2016 11:51:27 +0200 Subject: [PATCH] Improve documentation of modbus_report_slave_id --- doc/modbus_report_slave_id.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/modbus_report_slave_id.txt b/doc/modbus_report_slave_id.txt index e727177..5307d5c 100644 --- a/doc/modbus_report_slave_id.txt +++ b/doc/modbus_report_slave_id.txt @@ -26,7 +26,8 @@ The response stored in _dest_ contains: * additional data specific to each controller. For example, libmodbus returns the version of the library as a string. -The function write at most _max_dest_ bytes from the response to _dest_. +The function writes at most _max_dest_ bytes from the response to _dest_ so +you must take to allocate enough memory to store the results. RETURN VALUE ------------ -- libgit2 0.21.4