Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da7b639
)
Clearer doc.
author
Martin Pool
<mbp@samba.org>
Tue, 15 Jan 2002 11:32:30 +0000
(11:32 +0000)
committer
Martin Pool
<mbp@samba.org>
Tue, 15 Jan 2002 11:32:30 +0000
(11:32 +0000)
lib/compat.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/compat.c
b/lib/compat.c
index
e84da83
..
bf01376
100644
(file)
--- a/
lib/compat.c
+++ b/
lib/compat.c
@@
-97,8
+97,10
@@
#ifndef HAVE_STRLCPY
-/* like strncpy but does not 0 fill the buffer and always null
- terminates. bufsize is the size of the destination buffer */
+/* Like strncpy but does not 0 fill the buffer and always null
+ * terminates. bufsize is the size of the destination buffer.
+ *
+ * Returns the index of the terminating byte. */
size_t strlcpy(char *d, const char *s, size_t bufsize)
{
size_t len = strlen(s);