sprintf(out,"%2ldd%2ldh",t/86400, (t%86400)/3600); overflowed static char...
sprintf(out,"%2ldd%2ldh",t/86400, (t%86400)/3600); overflowed static char out[7] when t > 100days as %2ld only states a minimum width. Changed out to allow for the longest possible string that sprintf can make from a 64bit unsigned long '106751991167300d15h' (20 chars including the null) Fixes #22
Loading