2 * "THE BEER-WARE LICENSE" (Revision 42):
3 * <tobias.rehbein@web.de> wrote this file. As long as you retain this notice
4 * you can do whatever you want with this stuff. If we meet some day, and you
5 * think this stuff is worth it, you can buy me a beer in return.
17 #define SAFE_STRNCPY(dst, src, len) do { \
18 strncpy(dst, src, (len)-1); \
19 dst[(len)-1] = '\0'; \