1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +03:00

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>
This commit is contained in:
Matthias Dieter Wallnöfer
2012-02-20 09:27:13 +01:00
committed by Andrew Tridgell
parent b2ff4b06d6
commit ed405df823

View File

@ -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));