summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2012-02-20 09:27:13 +0100
committerAndrew Tridgell <tridge@samba.org>2012-02-22 23:57:24 +0100
commited405df823b9238baf49e3f9b84146eef6ce64ec (patch)
treed6893191d1b447e0b819acb6e1446f295f68d90a
parentb2ff4b06d65f26eed913eb472a6660e7e26f8389 (diff)
downloadsamba-ed405df823b9238baf49e3f9b84146eef6ce64ec.tar.gz
samba-ed405df823b9238baf49e3f9b84146eef6ce64ec.tar.bz2
samba-ed405df823b9238baf49e3f9b84146eef6ce64ec.zip
examples/testsmbc.c - substitute deprecated function "bzero" with "memset"
Here we do not make any use of libreplace and hence it would be overkill to include the right headers for Solaris. This fixes bug: https://bugzilla.samba.org/show_bug.cgi?id=8767 Signed-off-by: Andrew Tridgell <tridge@samba.org>
-rw-r--r--examples/libsmbclient/testsmbc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/libsmbclient/testsmbc.c b/examples/libsmbclient/testsmbc.c
index 47fb130edd..1f98c3afa7 100644
--- a/examples/libsmbclient/testsmbc.c
+++ b/examples/libsmbclient/testsmbc.c
@@ -114,7 +114,7 @@ int main(int argc, char *argv[])
/* Now, write some date to the file ... */
- bzero(buff, sizeof(buff));
+ memset(buff, '\0', sizeof(buff));
strcpy(buff, "Some test data for the moment ...");
err = smbc_write(fd, buff, sizeof(buff));