Branch: Tag:

2000-12-15

2000-12-15 21:47:27 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Bugfix of read_array().
Fixes [bug 916 (#916)].
Please verify.

Rev: lib/modules/Thread.pmod:1.28

132: Inside #if constant(thread_create)
   ptr%=sizeof(buffer);    num--;    }else{ -  ret=buffer[ptr..]+buffer[..num-sizeof(ret)-1]; +  if (ptr+num < sizeof(buffer)) { +  ret = buffer[ptr..ptr+num-1]; +  } else { +  ret = buffer[ptr..]+buffer[..num-(sizeof(buffer)-ptr)-1]; +  }    ptr=num=0;    buffer=allocate(sizeof(buffer)); // Throw away any references.    }