We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ac9907 commit 2d28a36Copy full SHA for 2d28a36
2 files changed
templates/C/versioning.c.template
@@ -38,7 +38,7 @@ const VersioningInformation versioningInformation = {{
38
}},
39
.git = {{
40
.commit = {{
41
- .hash = "{git.commit.hash}\0",
+ .hash = "{git.commit.hash}",
42
.datetime = {{
43
.date = {{
44
.day = {git.commit.date.day},
templates/C/versioning.h
@@ -57,8 +57,8 @@ typedef struct {
57
} Version;
58
59
typedef struct {
60
- char hash[41]; // hex-value as string (160-bit => 40 characters + \0)
61
- DateTime datetime;
+ const char* hash; // hex-value as string (160-bit => 40 characters + \0)
+ DateTime datetime;
62
} Commit;
63
64
0 commit comments