diff options
author | Seppia <nonso@insicuri.net> | 2016-06-13 21:40:55 +0200 |
---|---|---|
committer | Seppia <nonso@insicuri.net> | 2016-06-13 21:40:55 +0200 |
commit | bdfe51843317bc42cadcd6d5326b8d90aa26e58d (patch) | |
tree | 340d1e8bfe54acc85472eaf522313d6d834d3012 | |
parent | ebb6099b04e402059ed8728527e9113941ff6cbc (diff) | |
download | onetimebluh-bdfe51843317bc42cadcd6d5326b8d90aa26e58d.tar.gz onetimebluh-bdfe51843317bc42cadcd6d5326b8d90aa26e58d.tar.bz2 onetimebluh-bdfe51843317bc42cadcd6d5326b8d90aa26e58d.zip |
fixed fwrite calling in keyrand function
-rw-r--r-- | onetimebluh.c | 2 |
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 { |