diff --git a/OpenSim/Framework/Monitoring/Stats/Stat.cs b/OpenSim/Framework/Monitoring/Stats/Stat.cs index df55314c30..a7cb2a6ae9 100644 --- a/OpenSim/Framework/Monitoring/Stats/Stat.cs +++ b/OpenSim/Framework/Monitoring/Stats/Stat.cs @@ -171,7 +171,7 @@ namespace OpenSim.Framework.Monitoring foreach (char c in DisallowedShortNameCharacters) { if (shortName.IndexOf(c) != -1) - shortName = shortName.Replace('c', '#'); + shortName = shortName.Replace(c, '#'); // throw new Exception(string.Format("Stat name {0} cannot contain character {1}", shortName, c)); }