summaryrefslogtreecommitdiffstats
path: root/libbb/safe_strncpy.c
diff options
context:
space:
mode:
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2010-08-17 23:39:02 (EDT)
committer graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2010-08-17 23:39:02 (EDT)
commit0a4946b3e913a2affe5fd342aa88e2533d06356e (patch)
treea53f2e977e6d39ac8356a9664fa46bec26c31c85 /libbb/safe_strncpy.c
parent0eb2cb22be9a69e9562fea935617864cc0e5f217 (diff)
Remove trailing whitespace. Sorry if this breaks your patches.
git-svn-id: http://opkg.googlecode.com/svn/trunk@552 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libbb/safe_strncpy.c')
-rw-r--r--libbb/safe_strncpy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/safe_strncpy.c b/libbb/safe_strncpy.c
index 0c5cf12..eb2dbab 100644
--- a/libbb/safe_strncpy.c
+++ b/libbb/safe_strncpy.c
@@ -24,11 +24,11 @@
-/* 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);
}