#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: