From a9db9083b6fd9c1bd6a09df6d64386d806488f7c Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Wed, 5 Jun 2013 01:07:47 +0200 Subject: [PATCH] Minor documentation updates. --- src/coloredstderr.c | 3 ++- src/trackfds.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/coloredstderr.c b/src/coloredstderr.c index 63c4a61..a55ce38 100644 --- a/src/coloredstderr.c +++ b/src/coloredstderr.c @@ -206,7 +206,7 @@ HOOK_FILE2(int, vprintf, stdout, const char *, format, va_list, ap) HOOK_FILE3(int, vfprintf, stream, FILE *, stream, const char *, format, va_list, ap) -/* Hardening functions (-D_FORTIFY_SOURCE=2). */ +/* Hardening functions (-D_FORTIFY_SOURCE=2), only functions from above */ HOOK_VAR_FILE2(int, __printf_chk, stdout, __vprintf_chk, int, flag, const char *, format) HOOK_VAR_FILE3(int, __fprintf_chk, fp, __vfprintf_chk, @@ -302,6 +302,7 @@ int fcntl(int fd, int cmd, ...) { va_start(ap, cmd); result = real_fcntl(fd, cmd, va_arg(ap, void *)); va_end(ap); + /* We only care about duping fds. */ if (cmd == F_DUPFD && result != -1) { int saved_errno = errno; diff --git a/src/trackfds.h b/src/trackfds.h index 34f0b1d..4760938 100644 --- a/src/trackfds.h +++ b/src/trackfds.h @@ -138,7 +138,7 @@ static void update_environment(void) { for (i = 0; i < tracked_fds_count; i++) { int length = snprintf(x, 10 + 1, "%d", tracked_fds[i]); if (length >= 10 + 1) { - /* Integer too bit to fit the buffer, skip it. */ + /* Integer too big to fit the buffer, skip it. */ continue; } -- 2.45.2