The buffer doesn't have the space for the terminating NUL. Fix it by replacing it with fwrite, as there seems to be little reason to use fprintf and NUL-terminated string in the first place.
Check readme for usage and demo: [![weboftwins-osvehicle-2020-rzr]( https://files.mastodon.social/media_attachments/files/105/163/916/892/863/178/original/05468e28b4463f95.png )]( https://mastodon.social/@rzr/105225153152922220#weboftwins-osvehicle-2020-rzr "weboftwins-osvehicle-2020-rzr") Change-Id: I2eac915954ca6cf585f01addb53df581631a7ae6 Bug: https://github.com/apache/incubator-nuttx/pull/1999 Relate-to: https://github.com/rzr/aframe-smart-home/issues/3 Origin: https://github.com/CrossStream/nuttx-apps/tree/sandbox/rzr/review/master/netutils/netcat Forwarded: https://github.com/apache/incubator-nuttx-apps/pull/482 Signed-off-by: Philippe Coval <rzr@users.sf.net>