aboutsummaryrefslogtreecommitdiff
path: root/src/sha256.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sha256.c')
-rw-r--r--src/sha256.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sha256.c b/src/sha256.c
index 1670221929..0ccb13d763 100644
--- a/src/sha256.c
+++ b/src/sha256.c
@@ -13,6 +13,8 @@
/// 2. sha2_seed() generates a random header.
/// sha256_self_test() is implicitly called once.
+#include <string.h>
+
#include "vim.h"
#include "sha256.h"
@@ -342,7 +344,7 @@ int sha256_self_test(void)
STRCPY(output, hexit);
} else {
sha256_start(&ctx);
- vim_memset(buf, 'a', 1000);
+ memset(buf, 'a', 1000);
for (j = 0; j < 1000; j++) {
sha256_update(&ctx, (char_u *) buf, 1000);