Charmed-hadron fragmentation functions from CERN LEP1 revisited