build: remove automake/autoconf build system
[oweals/opkg-lede.git] / libbb / safe_strncpy.c
index 0c5cf12efc581751b9b8be6a3066464741551f00..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)
-{   
-       dst[size-1] = '\0';
-       return strncpy(dst, src, size-1);   
+/* Like strncpy but make sure the resulting string is always 0 terminated. */
+extern char *safe_strncpy(char *dst, const char *src, size_t size)
+{
+       dst[size - 1] = '\0';
+       return strncpy(dst, src, size - 1);
 }
 
-
 /* END CODE */
 /*
 Local Variables: