Tue, 11 Mar 2003 20:01:42 +0100
trunk: changeset 51
minor glitch
tokenizer.c | file | annotate | diff | comparison | revisions |
--- a/tokenizer.c Sat Mar 08 15:55:01 2003 +0100 +++ b/tokenizer.c Tue Mar 11 20:01:42 2003 +0100 @@ -854,17 +854,17 @@ char old=0; tokz=tokz_create(); - if (len>0) { + if(len>0){ old=buffer[len-1]; buffer[len-1]='\0'; } tokz->flags|=TOKZ_READ_FROM_BUFFER; tokz->buffer.data=scopy(buffer); - tokz->buffer.len=len>0 ? len : strlen(tokz->buffer.data); + tokz->buffer.len=(len>0 ? (uint)len : strlen(tokz->buffer.data)); tokz->buffer.pos=0; - if (old>0) + if(old>0) buffer[len-1]=old; return tokz;