diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-03-15 08:29:22 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-03-15 08:29:22 +0000 |
commit | c7bda1ce659294d6e22c06e087f6f265983c7578 (patch) | |
tree | 4c6d2217f4d8306c59cf1096f8664e1cfd167213 /libbb/safe_strncpy.c | |
parent | 8854004b41065b3d081af7f3df13a100b0c8bfbe (diff) | |
download | busybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.tar.gz busybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.tar.bz2 busybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.zip |
Remove trailing whitespace. Update copyright to include 2004.
Diffstat (limited to 'libbb/safe_strncpy.c')
-rw-r--r-- | libbb/safe_strncpy.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libbb/safe_strncpy.c b/libbb/safe_strncpy.c index 08a2a0d9c..2016e6b52 100644 --- a/libbb/safe_strncpy.c +++ b/libbb/safe_strncpy.c | |||
@@ -2,7 +2,7 @@ | |||
2 | /* | 2 | /* |
3 | * Utility routines. | 3 | * Utility routines. |
4 | * | 4 | * |
5 | * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org> | 5 | * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> |
6 | * | 6 | * |
7 | * This program is free software; you can redistribute it and/or modify | 7 | * This program is free software; you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | 8 | * it under the terms of the GNU General Public License as published by |
@@ -24,11 +24,11 @@ | |||
24 | 24 | ||
25 | 25 | ||
26 | 26 | ||
27 | /* Like strncpy but make sure the resulting string is always 0 terminated. */ | 27 | /* Like strncpy but make sure the resulting string is always 0 terminated. */ |
28 | extern char * safe_strncpy(char *dst, const char *src, size_t size) | 28 | extern char * safe_strncpy(char *dst, const char *src, size_t size) |
29 | { | 29 | { |
30 | dst[size-1] = '\0'; | 30 | dst[size-1] = '\0'; |
31 | return strncpy(dst, src, size-1); | 31 | return strncpy(dst, src, size-1); |
32 | } | 32 | } |
33 | 33 | ||
34 | 34 | ||