summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/onetimebluh.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/onetimebluh.c b/src/onetimebluh.c
index c282c1a..9d65c70 100644
--- a/src/onetimebluh.c
+++ b/src/onetimebluh.c
@@ -184,8 +184,8 @@ void xor (int64_t ed, char* mess, char* keyf, char* outp) {
FILE* keyx = fopen (keyf, "r+");
FILE* critt = fopen (outp, "w");
- long mess_size;
- long pad_size;
+ int64_t mess_size;
+ int64_t pad_size;
fseek (mex, 0L, SEEK_END);
mess_size = ftell (mex);
@@ -196,7 +196,7 @@ void xor (int64_t ed, char* mess, char* keyf, char* outp) {
char* bytes = malloc (mess_size);
- long i;
+ int64_t i;
char a, b;
for (i = 0; i < mess_size; i ++) {
@@ -210,7 +210,7 @@ void xor (int64_t ed, char* mess, char* keyf, char* outp) {
if (ed == 'f' || ed == 's') {
ftruncate (fileno (keyx), (pad_size - mess_size));
fseek (keyx, 0L, SEEK_END);
- long new_pad_size = ftell (keyx);
+ int64_t new_pad_size = ftell (keyx);
printf ("Your pad is now %li bytes shorter \n", mess_size);
printf ("You now have %li bytes left \n", new_pad_size);
}
@@ -294,7 +294,7 @@ void bluh (int64_t c, char* mess, char* outp, char* ch) {
FILE* mex = fopen (mess, "r");
FILE* bluh = fopen (outp, "w");
- long len;
+ int64_t len;
fseek (mex, 0L, SEEK_END);
len = ftell (mex);