Mercurial > pidgin
diff libpurple/protocols/zephyr/zephyr.c @ 19268:db6218615be4
bcopy and bzero shouldn't be used. This allows Alver to compile nat-pmp.c on one of his obscure systems (and I fixed some other stuff that I noticed at the same time).
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Tue, 14 Aug 2007 18:31:01 +0000 |
parents | 25ef7db38f28 |
children | 941965d6fd88 315151da0dc6 |
line wrap: on
line diff
--- a/libpurple/protocols/zephyr/zephyr.c Tue Aug 14 05:20:12 2007 +0000 +++ b/libpurple/protocols/zephyr/zephyr.c Tue Aug 14 18:31:01 2007 +0000 @@ -1151,7 +1151,7 @@ size_t bufsize = strlen(msg) + 3; char *buf = g_new0(char,bufsize); g_snprintf(buf,1+strlen(msg)+2," %c%s",'\0',msg); - bzero((char *)¬ice, sizeof(notice)); + memset((char *)¬ice, 0, sizeof(notice)); notice.z_kind = ACKED; notice.z_port = 0; notice.z_opcode = tree_child(find_node(newparsetree,"opcode"),2)->contents; @@ -2205,7 +2205,7 @@ } else if (use_zeph02(zephyr)) { ZNotice_t notice; char *buf = g_strdup_printf("%s%c%s", sig, '\0', html_buf2); - bzero((char *)¬ice, sizeof(notice)); + memset((char *)¬ice, 0, sizeof(notice)); notice.z_kind = ACKED; notice.z_port = 0;