diff options
Diffstat (limited to 'OpenSim/Data/MySQL/MySQLAssetData.cs')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLAssetData.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Data/MySQL/MySQLAssetData.cs b/OpenSim/Data/MySQL/MySQLAssetData.cs index c96139d..f03e322 100644 --- a/OpenSim/Data/MySQL/MySQLAssetData.cs +++ b/OpenSim/Data/MySQL/MySQLAssetData.cs | |||
@@ -171,18 +171,18 @@ namespace OpenSim.Data.MySQL | |||
171 | dbcon)) | 171 | dbcon)) |
172 | { | 172 | { |
173 | string assetName = asset.Name; | 173 | string assetName = asset.Name; |
174 | if (asset.Name.Length > 64) | 174 | if (asset.Name.Length > AssetBase.MAX_ASSET_NAME) |
175 | { | 175 | { |
176 | assetName = asset.Name.Substring(0, 64); | 176 | assetName = asset.Name.Substring(0, AssetBase.MAX_ASSET_NAME); |
177 | m_log.WarnFormat( | 177 | m_log.WarnFormat( |
178 | "[ASSET DB]: Name '{0}' for asset {1} truncated from {2} to {3} characters on add", | 178 | "[ASSET DB]: Name '{0}' for asset {1} truncated from {2} to {3} characters on add", |
179 | asset.Name, asset.ID, asset.Name.Length, assetName.Length); | 179 | asset.Name, asset.ID, asset.Name.Length, assetName.Length); |
180 | } | 180 | } |
181 | 181 | ||
182 | string assetDescription = asset.Description; | 182 | string assetDescription = asset.Description; |
183 | if (asset.Description.Length > 64) | 183 | if (asset.Description.Length > AssetBase.MAX_ASSET_DESC) |
184 | { | 184 | { |
185 | assetDescription = asset.Description.Substring(0, 64); | 185 | assetDescription = asset.Description.Substring(0, AssetBase.MAX_ASSET_DESC); |
186 | m_log.WarnFormat( | 186 | m_log.WarnFormat( |
187 | "[ASSET DB]: Description '{0}' for asset {1} truncated from {2} to {3} characters on add", | 187 | "[ASSET DB]: Description '{0}' for asset {1} truncated from {2} to {3} characters on add", |
188 | asset.Description, asset.ID, asset.Description.Length, assetDescription.Length); | 188 | asset.Description, asset.ID, asset.Description.Length, assetDescription.Length); |