summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--onetimebluh.c2
1 files changed, 1 insertions, 1 deletions
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 {