projects
/
platform
/
upstream
/
udisks2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d31b65e
)
Fix use of memset(3)
author
David Zeuthen
<davidz@redhat.com>
Sat, 21 Jan 2012 21:45:50 +0000
(16:45 -0500)
committer
David Zeuthen
<davidz@redhat.com>
Sat, 21 Jan 2012 21:45:50 +0000
(16:45 -0500)
Pointed out here https://bugs.freedesktop.org/show_bug.cgi?id=45039
Signed-off-by: David Zeuthen <davidz@redhat.com>
tools/udisksctl.c
patch
|
blob
|
history
diff --git
a/tools/udisksctl.c
b/tools/udisksctl.c
index
d3b9a54
..
26ecc46
100644
(file)
--- 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)