diff options
author | cinap_lenrek <cinap_lenrek@centraldogma> | 2012-01-16 18:42:16 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@centraldogma> | 2012-01-16 18:42:16 +0100 |
commit | 8f5375fa61acb4da83e855e40402d12be01a8c68 (patch) | |
tree | a8c61365b7a97648755de6acefdf596aabe4529b /sys/src/cmd/cifs/pack.c | |
parent | b15accceac5f79106bb6a115985eed63284171cf (diff) |
cifs: updated cifs/smb client to quintiles latest version
Diffstat (limited to 'sys/src/cmd/cifs/pack.c')
-rw-r--r-- | sys/src/cmd/cifs/pack.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/src/cmd/cifs/pack.c b/sys/src/cmd/cifs/pack.c index 1f0230220..16285bfc3 100644 --- a/sys/src/cmd/cifs/pack.c +++ b/sys/src/cmd/cifs/pack.c @@ -27,7 +27,7 @@ ppath(Pkt *p, char *str) if(!str) return s; - if(p->s->caps & CAP_UNICODE){ + if(p->s->flags2 & FL2_UNICODE){ if(((p->pos - p->buf) % 2) != 0) /* pad to even offset */ p8(p, 0); while(*str){ @@ -57,7 +57,7 @@ pstr(Pkt *p, char *str) if(!str) return s; - if(p->s->caps & CAP_UNICODE){ + if(p->s->flags2 & FL2_UNICODE){ if(((p->pos - p->buf) % 2) != 0) p8(p, 0); /* pad to even offset */ while(*str){ @@ -238,7 +238,10 @@ gstr(Pkt *p, char *str, int n) if(!n || !str) return; - if(p->s->caps & CAP_UNICODE){ + if(p->flags2 & FL2_UNICODE){ + if(((p->pos - p->buf) % 2) != 0) + g8(p); /* strip padding to even offset */ + i = 0; while(*p->pos && n && p->pos < p->eop){ r = gl16(p); |