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
/
testwrite.c
diff --git
a/examples/libsmbclient/testwrite.c
b/examples/libsmbclient/testwrite.c
index b641a08a1ce07164514b43e04f422f4467bf13cf..636cb2046de126f66c5768de937994c110335655 100644
(file)
--- a/
examples/libsmbclient/testwrite.c
+++ b/
examples/libsmbclient/testwrite.c
@@
-47,7
+47,7
@@
int main(int argc, char * argv[])
continue;
}
- s
trcpy(buffer
, "Hello world\n");
+ s
nprintf(buffer, sizeof(buffer), "%s"
, "Hello world\n");
ret = smbc_write(fd, buffer, strlen(buffer));
savedErrno = errno;