diff options
author | Hans de Goede <hdegoede@redhat.com> | 2011-08-25 14:52:42 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2011-08-25 14:55:39 +0200 |
commit | 731c44d75234b5a35d267d67418db233dcdec0c6 (patch) | |
tree | e813c09e5a293b0596309ed43387c1a56a96d89f | |
parent | 8c9404374a6066cf5f5567b93e2e5e9debd2c722 (diff) |
fix more inverted memset parameters
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-rw-r--r-- | server/inputs_channel.c | 6 | ||||
-rw-r--r-- | server/smartcard.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/server/inputs_channel.c b/server/inputs_channel.c index 653910e8..a6dec839 100644 --- a/server/inputs_channel.c +++ b/server/inputs_channel.c @@ -523,12 +523,12 @@ static void key_modifiers_sender(void *opaque) void inputs_init(void) { ChannelCbs channel_cbs; - ClientCbs client_cbs = {0,}; + ClientCbs client_cbs; ASSERT(!g_inputs_channel); - memset(&channel_cbs, sizeof(channel_cbs), 0); - memset(&client_cbs, sizeof(client_cbs), 0); + memset(&channel_cbs, 0, sizeof(channel_cbs)); + memset(&client_cbs, 0, sizeof(client_cbs)); channel_cbs.config_socket = inputs_channel_config_socket; channel_cbs.on_disconnect = inputs_channel_on_disconnect; diff --git a/server/smartcard.c b/server/smartcard.c index 2ff13101..056caa62 100644 --- a/server/smartcard.c +++ b/server/smartcard.c @@ -506,12 +506,12 @@ SmartCardChannel *g_smartcard_channel; static void smartcard_init(void) { ChannelCbs channel_cbs; - ClientCbs client_cbs = {0,}; + ClientCbs client_cbs; ASSERT(!g_smartcard_channel); - memset(&channel_cbs, sizeof(channel_cbs), 0); - memset(&client_cbs, sizeof(client_cbs), 0); + memset(&channel_cbs, 0, sizeof(channel_cbs)); + memset(&client_cbs, 0, sizeof(client_cbs)); channel_cbs.config_socket = smartcard_channel_client_config_socket; channel_cbs.on_disconnect = smartcard_channel_on_disconnect; |