From ed405df823b9238baf49e3f9b84146eef6ce64ec Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Mon, 20 Feb 2012 09:27:13 +0100 Subject: 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 --- examples/libsmbclient/testsmbc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') 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)); -- cgit