treewrite: use Lindent to reformat to kernel coding style
[oweals/opkg-lede.git] / libbb / safe_strncpy.c
index eb2dbabf1dea22aa72ef945acafa863feed13b04..a81381f49c6951f85a20656664c1795a7d9245db 100644 (file)
 #include <string.h>
 #include "libbb.h"
 
-
-
 /* Like strncpy but make sure the resulting string is always 0 terminated. */
-extern char * safe_strncpy(char *dst, const char *src, size_t size)
+extern char *safe_strncpy(char *dst, const char *src, size_t size)
 {
-       dst[size-1] = '\0';
-       return strncpy(dst, src, size-1);
+       dst[size - 1] = '\0';
+       return strncpy(dst, src, size - 1);
 }
 
-
 /* END CODE */
 /*
 Local Variables: