summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/onetimebluh.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/onetimebluh.c b/src/onetimebluh.c
index ae81b5c..877de29 100644
--- a/src/onetimebluh.c
+++ b/src/onetimebluh.c
@@ -150,7 +150,7 @@ void xor(int ed, char* mess, char* keyf, char* outp) {
pad_size = ftell(keyx);
fseek(keyx, (pad_size - mess_size), SEEK_SET);
- char* mexstream = malloc(mess_size);
+ char* bytes = malloc(mess_size);
long i;
char a, b;
@@ -158,10 +158,10 @@ void xor(int ed, char* mess, char* keyf, char* outp) {
for (i = 0; i < mess_size; i ++) {
fscanf(mex, "%c", &a);
fscanf(keyx, "%c", &b);
- mexstream[i] = a ^ b;
+ bytes[i] = a ^ b;
}
- fwrite(mexstream, sizeof(char), mess_size, critt);
+ fwrite(bytes, sizeof(char), mess_size, critt);
if (ed == 'f' || ed == 'v') {
ftruncate(fileno(keyx), (pad_size - mess_size));
@@ -171,7 +171,7 @@ void xor(int ed, char* mess, char* keyf, char* outp) {
printf("You now have %li bytes left \n", new_pad_size);
}
- free(mexstream);
+ free(bytes);
fclose(mex);
fclose(keyx);