소스 검색

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;