diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2012-02-20 09:27:13 +0100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2012-02-22 23:57:24 +0100 |
commit | ed405df823b9238baf49e3f9b84146eef6ce64ec (patch) | |
tree | d6893191d1b447e0b819acb6e1446f295f68d90a | |
parent | b2ff4b06d65f26eed913eb472a6660e7e26f8389 (diff) | |
download | samba-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.c | 2 |
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)); |