From 92f24893a5e2d12d0c32662483117c7032623bf1 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 13 Dec 2017 18:35:52 +0100 Subject: Fix linking issue (linking in wrong order) Change program argument handling. Add new program argument "new" to create a new sibs project which creates a project with all necessary files and also uses git init (ignores failure, for example if git is not installed). Change build path from "build" to "sibs-build" to prevent name clashing since "build" is a common name for directories. --- src/FileUtil.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/FileUtil.cpp') diff --git a/src/FileUtil.cpp b/src/FileUtil.cpp index 9a15938..899a1af 100644 --- a/src/FileUtil.cpp +++ b/src/FileUtil.cpp @@ -125,6 +125,7 @@ namespace sibs errMsg += strerror(error); return Result::Err(errMsg); } + setbuf(file, NULL); fwrite(data.data, 1, data.size, file); fclose(file); return Result::Ok(true); -- cgit v1.2.3