diff options
Diffstat (limited to 'src/sysdep.c')
| -rw-r--r-- | src/sysdep.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index f97a8585253..b0d5a1abbe3 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -1844,7 +1844,11 @@ snprintf (char *buf, size_t bufsize, char const *format, ...) | |||
| 1844 | 1844 | ||
| 1845 | if (INT_MAX < nbytes) | 1845 | if (INT_MAX < nbytes) |
| 1846 | { | 1846 | { |
| 1847 | #ifdef EOVERFLOW | ||
| 1847 | errno = EOVERFLOW; | 1848 | errno = EOVERFLOW; |
| 1849 | #else | ||
| 1850 | errno = EDOM; | ||
| 1851 | #endif | ||
| 1848 | return -1; | 1852 | return -1; |
| 1849 | } | 1853 | } |
| 1850 | return nbytes; | 1854 | return nbytes; |