aboutsummaryrefslogtreecommitdiffstats
path: root/src/passphrase.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-05-24 04:58:15 +0200
committerMattias Andrée <maandree@operamail.com>2014-05-24 04:58:15 +0200
commitd50f0d7caa79acd400e550b2ca9476d5810ba280 (patch)
treecaae580fa0ec1efe952251ab095c3085862e12e3 /src/passphrase.c
parentfix warnings (diff)
downloadlibpassphrase-d50f0d7caa79acd400e550b2ca9476d5810ba280.tar.gz
libpassphrase-d50f0d7caa79acd400e550b2ca9476d5810ba280.tar.bz2
libpassphrase-d50f0d7caa79acd400e550b2ca9476d5810ba280.tar.xz
add volatile to ptr in passphrase_wipe1400900338
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/passphrase.c')
-rw-r--r--src/passphrase.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passphrase.c b/src/passphrase.c
index 9fb4ef5..7f65c72 100644
--- a/src/passphrase.c
+++ b/src/passphrase.c
@@ -373,7 +373,7 @@ volatile sig_atomic_t passphrase_wipe_volatile = 1;
* @param ptr The password to wipe
* @param n The number of characters to wipe
*/
-void passphrase_wipe(char* ptr, size_t n)
+void passphrase_wipe(volatile char* ptr, size_t n)
{
size_t i;
for (i = 0; (i < n) && passphrase_wipe_volatile; i++)