Skip to content

Commit 2d28a36

Browse files
committed
Fixes #85.
1 parent 3ac9907 commit 2d28a36

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

templates/C/versioning.c.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const VersioningInformation versioningInformation = {{
3838
}},
3939
.git = {{
4040
.commit = {{
41-
.hash = "{git.commit.hash}\0",
41+
.hash = "{git.commit.hash}",
4242
.datetime = {{
4343
.date = {{
4444
.day = {git.commit.date.day},

templates/C/versioning.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ typedef struct {
5757
} Version;
5858

5959
typedef struct {
60-
char hash[41]; // hex-value as string (160-bit => 40 characters + \0)
61-
DateTime datetime;
60+
const char* hash; // hex-value as string (160-bit => 40 characters + \0)
61+
DateTime datetime;
6262
} Commit;
6363

6464
typedef struct {

0 commit comments

Comments
 (0)