Skip to content

Commit 2f54493

Browse files
committed
Nth time is the charm
1 parent 76e8c3a commit 2f54493

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: cpio/test/test_option_t.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ DEFINE_TEST(test_option_t)
103103
_snprintf(date, sizeof(date)-1, "%12s file", date2);
104104
#else
105105
strftime(date2, sizeof(date2)-1, "%b %e %Y", tmptr);
106-
(void)snprintf(date, sizeof(date)-1, "%12s file", date2);
106+
if (snprintf(date, sizeof(date)-1, "%12s file", date2) < 0)
107+
__builtin_unreachable();
107108
#endif
108109
assertEqualMem(p + 42, date, strlen(date));
109110
free(p);

0 commit comments

Comments
 (0)