Branch: Tag:

1997-04-11

1997-04-11 02:35:58 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

minor bugs fixed

Rev: src/encode.c:1.8
Rev: src/signal_handler.c:1.10

306:    data->counter.u.integer++;    if(data->ptr + num > data->len)    error("Failed to decode string. (string range error)\n"); -  push_string(make_shared_binary_string(data->data + data->ptr, num)); +  push_string(make_shared_binary_string((char *)(data->data + data->ptr), num));    data->ptr+=num;    break;   
422:    data=&d;    data->counter.type=T_INT;    data->counter.u.integer=COUNTER_START; -  data->data=tmp->str; +  data->data=(unsigned char *)tmp->str;    data->len=tmp->len;    data->ptr=0;