Преглед на файлове

n is not the length, buflen is

Stephen Paul Weber преди 17 години
родител
ревизия
7d1fbeea42
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      mnencode.c

+ 1 - 1
mnencode.c

@@ -46,7 +46,7 @@ int main(int argc, char **argv) {
 	buflen = fread(cbuf, 1, sizeof cbuf, stdin);
 
 	if(hex_encoded_input) {
-		buflen = hex2bytes(n, cbuf, xbuf);
+		buflen = hex2bytes(buflen, cbuf, xbuf);
 		if(buflen < 0) {
 			perror("hex2bytes");
 			return EXIT_FAILURE;