Cygwin: avoid GCC 8.3 errors with -Werror=stringop-truncation

This commit is contained in:
Ken Brown
2019-07-15 15:02:00 -04:00
parent f0cf44dc7d
commit b66dddb56d
3 changed files with 5 additions and 5 deletions

View File

@@ -25,7 +25,7 @@ uname_x (struct utsname *name)
{
__try
{
char buf[NI_MAXHOST + 1];
char buf[NI_MAXHOST + 1] __attribute__ ((nonstring));
char *snp = strstr (cygwin_version.dll_build_date, "SNP");
memset (name, 0, sizeof (*name));