Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixing possible buffer overflow in fgetws
sizeof(buf) is 1024, but sizeof(wchar_t) is 4, so there is just space for sizeof(buf)/sizeof(wchar_t) - 256 chars in buffer. /* CC="gcc -D_FORTIFY_SOURCE=2 -O2" make ... call to ‘__fgetws_chk_warn’ declared with attribute warning: \ fgetws called with bigger size than length of destination buffer */
- Loading branch information