aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MySQL/MySQLXAssetData.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Data/MySQL/MySQLXAssetData.cs')
-rw-r--r--OpenSim/Data/MySQL/MySQLXAssetData.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Data/MySQL/MySQLXAssetData.cs b/OpenSim/Data/MySQL/MySQLXAssetData.cs
index 6c6f560..ec2bcc6 100644
--- a/OpenSim/Data/MySQL/MySQLXAssetData.cs
+++ b/OpenSim/Data/MySQL/MySQLXAssetData.cs
@@ -214,12 +214,12 @@ namespace OpenSim.Data.MySQL
214 } 214 }
215 215
216 string assetDescription = asset.Description; 216 string assetDescription = asset.Description;
217 if(assetDescription.Length > AssetBase.MAX_LMASSET_DESC) 217 if (asset.Description.Length > AssetBase.MAX_ASSET_DESC)
218 { 218 {
219 if(asset.Type == (sbyte) AssetType.Landmark) 219 assetDescription = asset.Description.Substring(0, AssetBase.MAX_ASSET_DESC);
220 assetDescription = assetDescription.Substring(0, AssetBase.MAX_LMASSET_DESC); 220 m_log.WarnFormat(
221 else 221 "[XASSET DB]: Description '{0}' for asset {1} truncated from {2} to {3} characters on add",
222 assetDescription = assetDescription.Substring(0, AssetBase.MAX_ASSET_DESC); 222 asset.Description, asset.ID, asset.Description.Length, assetDescription.Length);
223 } 223 }
224 224
225 if (m_enableCompression) 225 if (m_enableCompression)