From bdfe51843317bc42cadcd6d5326b8d90aa26e58d Mon Sep 17 00:00:00 2001 From: Seppia Date: Mon, 13 Jun 2016 21:40:55 +0200 Subject: fixed fwrite calling in keyrand function --- onetimebluh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onetimebluh.c b/onetimebluh.c index 0b4774a..03260b4 100644 --- a/onetimebluh.c +++ b/onetimebluh.c @@ -185,7 +185,7 @@ void keyrand(int nb, char* outp) { } FILE* file = fopen(outp, "w"); - fwrite(key, nb, 1, file); + fwrite(key, sizeof(char), nb, file); fclose(file); printf("Created key file %s of %d bytes \n", outp, nb); } else { -- cgit v1.2.3