diff options
author | dec05eba <dec05eba@protonmail.com> | 2017-12-13 18:35:52 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2017-12-13 18:37:07 +0100 |
commit | 92f24893a5e2d12d0c32662483117c7032623bf1 (patch) | |
tree | 2fac67d414383465f1257a875d7a23ab3cfd9814 /src/FileUtil.cpp | |
parent | f2c70dfaba8d6481e86646080c51b6874d95f14e (diff) |
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.
Diffstat (limited to 'src/FileUtil.cpp')
-rw-r--r-- | src/FileUtil.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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<bool>::Err(errMsg); } + setbuf(file, NULL); fwrite(data.data, 1, data.size, file); fclose(file); return Result<bool>::Ok(true); |