Strange sscanf() behaviour