Ver Fonte

n is not the length, buflen is

Stephen Paul Weber há 17 anos atrás
pai
commit
7d1fbeea42
1 ficheiros alterados com 1 adições e 1 exclusões
  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;