summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/benoit/d/ver.cc2
-rw-r--r--src/benoit/wrtimg.cc2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/benoit/d/ver.cc b/src/benoit/d/ver.cc
deleted file mode 100644
index 0e2860f..0000000
--- a/src/benoit/d/ver.cc
+++ /dev/null
@@ -1,2 +0,0 @@
-# include <benoit/d/ver.hh>
-unsigned long long benoit::d::ver = 0x6ull;
diff --git a/src/benoit/wrtimg.cc b/src/benoit/wrtimg.cc
index 8a38ee9..7e62b34 100644
--- a/src/benoit/wrtimg.cc
+++ b/src/benoit/wrtimg.cc
@@ -31,7 +31,7 @@ void benoit::wrtimg(std::vector<std::uint8_t> * img) {
datsiz = WebPEncodeLosslessRGB(img->data(),benoit::d::resx,benoit::d::resy,(benoit::d::resy * 0x3),&dat);
break;
}
- int file = ::open(benoit::d::outimg.c_str(),O_TRUNC | O_WRONLY);
+ int file = ::open(benoit::d::outimg.c_str(),(O_CREAT | O_TRUNC | O_WRONLY),0x1B4);
auto iterwrt = [](int & file,std::uint8_t * & dat,unsigned long long & datsiz) {
for(unsigned long long pos = 0x0;(pos < datsiz);++pos) {
::ssize_t byteswrtn = ::write(file,&dat[pos],0x1);