Compare commits

...

2 commits

Author SHA1 Message Date
Antonio SJ Musumeci
bcd5fde5d8 properly initialize fuse_buf in worker loop 2021-06-20 17:11:58 -04:00
Antonio SJ Musumeci
ed0c1db3a8 fix parsing of relative branch paths 2021-02-11 19:49:50 -05:00
2 changed files with 5 additions and 3 deletions

View file

@ -79,8 +79,8 @@ fuse_do_work(void *data)
struct fuse_buf fbuf; struct fuse_buf fbuf;
struct fuse_chan *ch = mt->prevch; struct fuse_chan *ch = mt->prevch;
fbuf.mem = w->buf; fbuf = (struct fuse_buf){ .mem = w->buf,
fbuf.size = w->bufsize; .size = w->bufsize };
pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL);
res = fuse_session_receive_buf(mt->se, &fbuf, &ch); res = fuse_session_receive_buf(mt->se, &fbuf, &ch);

View file

@ -119,7 +119,9 @@ namespace l
{ {
uint64_t offset; uint64_t offset;
offset = s_.find_first_of('/'); offset = s_.find_first_not_of("+<>-=");
if(offset > 1)
offset = 2;
*instr_ = s_.substr(0,offset); *instr_ = s_.substr(0,offset);
if(offset != std::string::npos) if(offset != std::string::npos)
*values_ = s_.substr(offset); *values_ = s_.substr(offset);