aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MSSQL
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Data/MSSQL')
-rw-r--r--OpenSim/Data/MSSQL/MSSQLAssetData.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Data/MSSQL/MSSQLAssetData.cs b/OpenSim/Data/MSSQL/MSSQLAssetData.cs
index ce70396..f94375d 100644
--- a/OpenSim/Data/MSSQL/MSSQLAssetData.cs
+++ b/OpenSim/Data/MSSQL/MSSQLAssetData.cs
@@ -160,18 +160,18 @@ namespace OpenSim.Data.MSSQL
160 @temporary, @create_time, @access_time, @creatorid, @asset_flags, @data)"; 160 @temporary, @create_time, @access_time, @creatorid, @asset_flags, @data)";
161 161
162 string assetName = asset.Name; 162 string assetName = asset.Name;
163 if (asset.Name.Length > 64) 163 if (asset.Name.Length > AssetBase.MAX_ASSET_NAME)
164 { 164 {
165 assetName = asset.Name.Substring(0, 64); 165 assetName = asset.Name.Substring(0, AssetBase.MAX_ASSET_NAME);
166 m_log.WarnFormat( 166 m_log.WarnFormat(
167 "[ASSET DB]: Name '{0}' for asset {1} truncated from {2} to {3} characters on add", 167 "[ASSET DB]: Name '{0}' for asset {1} truncated from {2} to {3} characters on add",
168 asset.Name, asset.ID, asset.Name.Length, assetName.Length); 168 asset.Name, asset.ID, asset.Name.Length, assetName.Length);
169 } 169 }
170 170
171 string assetDescription = asset.Description; 171 string assetDescription = asset.Description;
172 if (asset.Description.Length > 64) 172 if (asset.Description.Length > AssetBase.MAX_ASSET_DESC)
173 { 173 {
174 assetDescription = asset.Description.Substring(0, 64); 174 assetDescription = asset.Description.Substring(0, AssetBase.MAX_ASSET_DESC);
175 m_log.WarnFormat( 175 m_log.WarnFormat(
176 "[ASSET DB]: Description '{0}' for asset {1} truncated from {2} to {3} characters on add", 176 "[ASSET DB]: Description '{0}' for asset {1} truncated from {2} to {3} characters on add",
177 asset.Description, asset.ID, asset.Description.Length, assetDescription.Length); 177 asset.Description, asset.ID, asset.Description.Length, assetDescription.Length);