1
1
mirror of https://github.com/theoludwig/libcproject.git synced 2024-11-13 23:43:13 +01:00

fix: set_version typings

This commit is contained in:
Théo LUDWIG 2023-06-25 21:35:24 +02:00
parent 074d9e0acb
commit c5a7bbf7c1
Signed by: theoludwig
GPG Key ID: ADFE5A563D718F3B

View File

@ -13,7 +13,7 @@ int main(int argc, string_t* argv) {
content = string_concatenate(content, argv[1]); content = string_concatenate(content, argv[1]);
content = string_concatenate(content, "\"\n\n"); content = string_concatenate(content, "\"\n\n");
content = string_concatenate(content, "#endif\n"); content = string_concatenate(content, "#endif\n");
int result = filesystem_write("./version.h", content, string_get_length(content)); int result = filesystem_write("./version.h", (byte_t*)content, string_get_length(content));
if (result == -1) { if (result == -1) {
fprintf(stderr, "Error: Could not write to file.\n"); fprintf(stderr, "Error: Could not write to file.\n");
return EXIT_FAILURE; return EXIT_FAILURE;