Check return from sscanf(); if it isn't 2, don't believe the values of h and m.