Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tlug] Beware of "off by one" errors. . . . . . . . . . (was: Re: just a quick note... more to come later :))



Beware of "off by one" errors. 

Michal Hajek wrote: 

> http://material.karlov.mff.cuni.cz/people/hajek/pec/lojza-char/

Here are some new bugs, served fresh and hot: 

   lojza-char/measureTemp_hot.c:thermocouple_volt[ibcnt+1]='\0';
   lojza-char/setupHeating.c:voltage1[ibcnt+1]='\0';
   lojza-char/setupHeating.c:current1[ibcnt+1]='\0';
   lojza-char/setupHeating.c:voltage2[ibcnt+1]='\0';
   lojza-char/setupHeating.c:current2[ibcnt+1]='\0';



Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links