git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
examples: Remove all uses of strcpy in examples (except for validchr.c).
[nivanova/samba-autobuild/.git]
/
examples
/
libsmbclient
/
testsmbc.c
diff --git
a/examples/libsmbclient/testsmbc.c
b/examples/libsmbclient/testsmbc.c
index 1f98c3afa7a0a454494b6bef04cb43d52b49d156..3c9aa5674cdaab40cd988a72abadcb6c081952b3 100644
(file)
--- a/
examples/libsmbclient/testsmbc.c
+++ b/
examples/libsmbclient/testsmbc.c
@@
-115,7
+115,7
@@
int main(int argc, char *argv[])
/* Now, write some date to the file ... */
memset(buff, '\0', sizeof(buff));
- s
trcpy(buff
, "Some test data for the moment ...");
+ s
nprintf(buff, sizeof(buff), "%s"
, "Some test data for the moment ...");
err = smbc_write(fd, buff, sizeof(buff));