From 63e481780855d2d6469840d9ba853d91c6bb8c28 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Thu, 26 Jun 2014 20:25:07 +0200 Subject: Replace usages of WIPE/C_WIPE with memset() --- src/notes.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/notes.cc') diff --git a/src/notes.cc b/src/notes.cc index 3504f61c..5d999fa3 100644 --- a/src/notes.cc +++ b/src/notes.cc @@ -89,7 +89,7 @@ void add_note(char *note, char code) char depths[32]; /* Get the first 60 chars - so do not have an overflow */ - C_WIPE(buf, 100, char); + memset(buf, 0, sizeof(buf)); strncpy(buf, note, 60); /* Get date and time */ -- cgit v1.2.3