- rename libbb's password helpers as suggested in libbb.h
[oweals/busybox.git] / libbb / safe_strncpy.c
index 0c5cf12efc581751b9b8be6a3066464741551f00..2016e6b52571a61d2cd7134b4bff8500f432b553 100644 (file)
@@ -2,7 +2,7 @@
 /*
  * Utility routines.
  *
- * Copyright (C) 1999,2000,2001 by Erik Andersen <andersee@debian.org>
+ * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
 
 
 
-/* Like strncpy but make sure the resulting string is always 0 terminated. */  
+/* 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);   
+       return strncpy(dst, src, size-1);
 }