projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add tests for gunzip
[oweals/busybox.git]
/
libbb
/
safe_strncpy.c
diff --git
a/libbb/safe_strncpy.c
b/libbb/safe_strncpy.c
index ebc7e28f30ca09e1c42a13c45312a77c9b63581d..cc425839fb36aa8a8766091b77d8659aa535b1c0 100644
(file)
--- a/
libbb/safe_strncpy.c
+++ b/
libbb/safe_strncpy.c
@@
-10,7
+10,7
@@
#include "libbb.h"
/* Like strncpy but make sure the resulting string is always 0 terminated. */
#include "libbb.h"
/* Like strncpy but make sure the resulting string is always 0 terminated. */
-char *
safe_strncpy(char *dst, const char *src, size_t size)
+char *safe_strncpy(char *dst, const char *src, size_t size)
{
if (!size) return dst;
dst[--size] = '\0';
{
if (!size) return dst;
dst[--size] = '\0';