Good pickup. Now:
*if* ( cm->ret ) {
cm->size = cm->payload = 0 ;
} *else* {
cm->payload = cb.used ;
cm->size = cb.used -1 ;
}
Paul Alfille
On 1/11/07, George M. Zouganelis <[EMAIL PROTECTED]> wrote:
George M. Zouganelis wrote on 11/1/2007 16:29:
> Paul,
>
> in owserver : DirallHandler
>
> if ( cm->ret ) {
> cm->size = cm->payload = 0 ;
> } else {
> cm->size = cm->payload = cb.used;
> }
>
> I have a cb.blob ending with two NULL chars , and a cb.used including
> both them
>
> Shouldn't we return a cm->size = cm->payload = cb.used - 1
> or check where the additional \0 is entered ?
>
ahm, maybe not an additional \0, just the size. will it be correct to
decrease by 1 ?
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers