rockchip-linux / rkdeveloptool

GNU General Public License v2.0
159 stars 91 forks source link

Fix compilation issue in split_item(). #39

Closed cmuellner closed 5 years ago

cmuellner commented 5 years ago

Recent compilers complain with the following message:

main.cpp: In function ‘void split_item(STRING_VECTOR&, char)’: main.cpp:2840:10: error: ‘char strncpy(char, const char, size_t)’ output truncated before terminating nul copying as many bytes from a string as its length

This patch addresses this issue.

Signed-off-by: Christoph Muellner christoph.muellner@theobroma-systems.com