diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2015-10-27 12:11:09 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2015-10-27 12:11:09 +0100 |
commit | e3822bdbd11f1546b002f00cc018a612e2f3d3e5 (patch) | |
tree | 609b1c3fae9bfd92b44fdb44b5131d2efcbb939a /built_in.h | |
parent | bd031f809422ea88b9619924911aa5112f95b6b3 (diff) |
flowtop: Use strlcpy instead of memcpy to copy strings
Make sure we always terminate the strings with '\0'. Also only set the
first byte to '\0' instead of memset()ing the entire buffer in case no
city/country is returned.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'built_in.h')
0 files changed, 0 insertions, 0 deletions