diff --git a/src/support/ios.c b/src/support/ios.c index 360e29e603968..f8619ea834051 100644 --- a/src/support/ios.c +++ b/src/support/ios.c @@ -566,7 +566,7 @@ int ios_trunc(ios_t *s, size_t size) #if !defined(_OS_WINDOWS_) if (ftruncate(s->fd, size) == 0) #else - if (_chsize(s->fd, size) == 0) + if (_chsize_s(s->fd, size) == 0) #endif return 0; }