From fa19d7d34c6c8ab9e7ff232e51f063665becf857 Mon Sep 17 00:00:00 2001 From: David Zeuthen Date: Sat, 21 Jan 2012 16:45:50 -0500 Subject: [PATCH] Fix use of memset(3) Pointed out here https://bugs.freedesktop.org/show_bug.cgi?id=45039 Signed-off-by: David Zeuthen --- tools/udisksctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/udisksctl.c b/tools/udisksctl.c index d3b9a54..26ecc46 100644 --- a/tools/udisksctl.c +++ b/tools/udisksctl.c @@ -1322,7 +1322,7 @@ handle_command_unlock_lock (gint *argc, out: if (passphrase != NULL) { - memset (passphrase, strlen (passphrase), '\0'); + memset (passphrase, '\0', strlen (passphrase)); g_free (passphrase); } if (options != NULL) -- 2.7.4