trafgen: reset errno before calling sscanf in str2mac