From f007bb854b0b2d2d12cd45a8feb674fa9abe70b2 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 16 Apr 2012 01:55:37 -0400 Subject: fix broken shgetc limiter logic (wasn't working) --- src/internal/shgetc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/internal/shgetc.h') diff --git a/src/internal/shgetc.h b/src/internal/shgetc.h index 0543cb0d..7beb8ce6 100644 --- a/src/internal/shgetc.h +++ b/src/internal/shgetc.h @@ -6,4 +6,4 @@ int __shgetc(FILE *); #define shcnt(f) ((f)->shcnt + ((f)->rpos - (f)->rend)) #define shlim(f, lim) __shlim((f), (lim)) #define shgetc(f) (((f)->rpos < (f)->shend) ? *(f)->rpos++ : __shgetc(f)) -#define shunget(f) ((f)->rend ? (void)(f)->rpos-- : (void)0) +#define shunget(f) ((f)->shend ? (void)(f)->rpos-- : (void)0) -- cgit v1.2.1