diff options
Diffstat (limited to 'stdio-common')
-rw-r--r-- | stdio-common/tst-long-dbl-fphex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stdio-common/tst-long-dbl-fphex.c b/stdio-common/tst-long-dbl-fphex.c index 0be80cad2a..a406a71800 100644 --- a/stdio-common/tst-long-dbl-fphex.c +++ b/stdio-common/tst-long-dbl-fphex.c @@ -28,9 +28,9 @@ do_test (void) int result = 0; const long double x = 24.5; wchar_t a[16]; - swprintf (a, sizeof (a), L"%La\n", x); + swprintf (a, sizeof a / sizeof a[0], L"%La\n", x); wchar_t A[16]; - swprintf (A, sizeof (A) / sizeof (A[0]), L"%LA\n", x); + swprintf (A, sizeof A / sizeof A[0], L"%LA\n", x); /* Here wprintf can return four valid variants. We must accept all of them. */ |