소스 검색

fix fputwc return value

Rich Felker 14 년 전
부모
커밋
52458cfa8c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/stdio/fputwc.c

+ 1 - 1
src/stdio/fputwc.c

@@ -25,7 +25,7 @@ wint_t fputwc(wchar_t c, FILE *f)
 	FLOCK(f);
 	c = __fputwc_unlocked(c, f);
 	FUNLOCK(f);
-	return 0;
+	return c;
 }
 
 weak_alias(__fputwc_unlocked, fputwc_unlocked);