Procházet zdrojové kódy

n is not the length, buflen is

Stephen Paul Weber před 17 roky
rodič
revize
7d1fbeea42
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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;