From 827294d97af5aef30af4e7440786ede5f520ed9b Mon Sep 17 00:00:00 2001 From: Seppia Date: Sat, 12 Nov 2016 20:43:26 +0100 Subject: style fix in xor() function --- src/onetimebluh.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/onetimebluh.c b/src/onetimebluh.c index 9f356d5..bdac2ff 100644 --- a/src/onetimebluh.c +++ b/src/onetimebluh.c @@ -143,14 +143,12 @@ void xor(int ed, char* mess, char* keyf, char* outp) { long mess_size; long pad_size; - - fseek(mex, 0L, SEEK_END); - mess_size = ftell(mex); - rewind(mex); - fseek(keyx, 0L, SEEK_END); - pad_size = ftell(keyx); - fseek(keyx, (pad_size - mess_size), SEEK_SET); - + fseek(mex, 0L, SEEK_END); + mess_size = ftell(mex); + rewind(mex); + fseek(keyx, 0L, SEEK_END); + pad_size = ftell(keyx); + fseek(keyx, (pad_size - mess_size), SEEK_SET); int i = 1; char a, b; -- cgit v1.2.3