]> code.delx.au - pulseaudio/commit
core-util: rework pa_strlcpy() to not rely on strncpy()
authorLennart Poettering <lennart@poettering.net>
Sat, 1 Aug 2009 00:01:58 +0000 (02:01 +0200)
committerLennart Poettering <lennart@poettering.net>
Sat, 1 Aug 2009 00:01:58 +0000 (02:01 +0200)
commitc6ea9fecc9acd70642ae45b01300484f6b900c6b
treeb79718b09c89c88965969752b6e8f46cc49d86be
parente5c2256e360df3662295b8cc0594568e425e8679
core-util: rework pa_strlcpy() to not rely on strncpy()

strncpy() is very slow since it resets the entire destination buffer.
Replace usage of strncpy by memcpy().
src/pulsecore/core-util.c