Update thrdtest.c

Bug fix