Skip to content

Commit 87fb3fb

Browse files
committed
Ensure there's a trailing NUL when we use #embed
1 parent 62a35ea commit 87fb3fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/_TestingInternals/Versions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const char *swt_getTestingLibraryVersion(void) {
2626
static char version[] = {
2727
#pragma clang diagnostic push
2828
#pragma clang diagnostic ignored "-Wc23-extensions"
29-
#embed "../../VERSION.txt"
29+
#embed "../../VERSION.txt" suffix(, '\0')
3030
#pragma clang diagnostic pop
3131
};
3232

0 commit comments

Comments
 (0)