summaryrefslogtreecommitdiff
path: root/src/stdio/fgetpos.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio/fgetpos.c')
-rw-r--r--src/stdio/fgetpos.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stdio/fgetpos.c b/src/stdio/fgetpos.c
index 65b35cf7..8e6d201e 100644
--- a/src/stdio/fgetpos.c
+++ b/src/stdio/fgetpos.c
@@ -6,6 +6,7 @@
int fgetpos(FILE * restrict stream, fpos_t * restrict pos)
{
SIGNAL_SAFE(0);
+ ASSERT_NOOVERLAP(stream, sizeof(*stream), pos, sizeof(*pos));
flockfile(stream);
*pos = stream->pos;