From 2fdbdd39807558424c51dbbb1818e92598c5ce68 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 13 May 2003 19:40:11 +0000 Subject: * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap second and third arguments. * ser-tcp.c (_initialize_ser_tcp): Likewise. * ser-unix.c (_initialize_ser_hardwire): Likewise. --- gdb/ser-tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/ser-tcp.c') diff --git a/gdb/ser-tcp.c b/gdb/ser-tcp.c index c6ae19d..a9a8714 100644 --- a/gdb/ser-tcp.c +++ b/gdb/ser-tcp.c @@ -208,7 +208,7 @@ void _initialize_ser_tcp (void) { struct serial_ops *ops = XMALLOC (struct serial_ops); - memset (ops, sizeof (struct serial_ops), 0); + memset (ops, 0, sizeof (struct serial_ops)); ops->name = "tcp"; ops->next = 0; ops->open = net_open; -- cgit v1.1