summaryrefslogtreecommitdiff
path: root/flowtop
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-10-27 12:11:09 +0100
committerTobias Klauser <tklauser@distanz.ch>2015-10-27 12:11:09 +0100
commite3822bdbd11f1546b002f00cc018a612e2f3d3e5 (patch)
tree609b1c3fae9bfd92b44fdb44b5131d2efcbb939a /flowtop
parentbd031f809422ea88b9619924911aa5112f95b6b3 (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 'flowtop')
0 files changed, 0 insertions, 0 deletions
blem because mod_timer() can handle already queued timers. Use __start_timer() everywhere so the earliest armed expiry time is preserved. Reported-by: Erik Veijola <erik.veijola@intel.com> Tested-by: Borislav Petkov <bp@alien8.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Borislav Petkov <bp@alien8.de> Cc: Tony Luck <tony.luck@intel.com> Link: http://lkml.kernel.org/r/alpine.DEB.2.20.1701310936080.3457@nanos Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers')