FORTIFY_SOURCE: introduce __BIONIC_FORTIFY_UNKNOWN_SIZE macro

Replace all occurances of "(size_t) -1" with a
__BIONIC_FORTIFY_UNKNOWN_SIZE macro.

Change-Id: I0b188f6cf31417d2dbef0e1bd759de3f9782873a
This commit is contained in:
Nick Kralevich
2012-07-13 14:46:36 -07:00
parent 260bf8cfe0
commit 9b6cc223a3
3 changed files with 8 additions and 4 deletions

View File

@@ -547,7 +547,7 @@ char *fgets(char *dest, int size, FILE *stream)
}
// Compiler doesn't know destination size. Don't call __fgets_chk
if (bos == (size_t) -1) {
if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) {
return __fgets_real(dest, size, stream);
}