summaryrefslogtreecommitdiffstats
path: root/demos/ssl/cli.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'demos/ssl/cli.cpp')
-rw-r--r--demos/ssl/cli.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/ssl/cli.cpp b/demos/ssl/cli.cpp
index a5bee1c7b9..cb5d329ea4 100644
--- a/demos/ssl/cli.cpp
+++ b/demos/ssl/cli.cpp
@@ -47,7 +47,7 @@ void main ()
sd = socket (AF_INET, SOCK_STREAM, 0); CHK_ERR(sd, "socket");
- memset (&sa, '\0', sizeof(sa));
+ memset(&sa, 0, sizeof(sa));
sa.sin_family = AF_INET;
sa.sin_addr.s_addr = inet_addr ("127.0.0.1"); /* Server IP */
sa.sin_port = htons (1111); /* Server Port number */