summaryrefslogtreecommitdiff
path: root/plugins/Db3x/dbsettings.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Db3x/dbsettings.c')
-rw-r--r--plugins/Db3x/dbsettings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Db3x/dbsettings.c b/plugins/Db3x/dbsettings.c
index 16bf2aa2bb..bda9b844aa 100644
--- a/plugins/Db3x/dbsettings.c
+++ b/plugins/Db3x/dbsettings.c
@@ -551,7 +551,7 @@ static INT_PTR WriteContactSetting(WPARAM wParam,LPARAM lParam)
if(tmp.value.type!=DBVT_BYTE && tmp.value.type!=DBVT_WORD && tmp.value.type!=DBVT_DWORD && tmp.value.type!=DBVT_ASCIIZ && tmp.value.type!=DBVT_UTF8 && tmp.value.type!=DBVT_BLOB)
return 1;
- if ((!tmp.szModule) || (!tmp.szSetting) || ((tmp.value.type == DBVT_ASCIIZ || tmp.value.type == DBVT_UTF8 )&& tmp.value.pszVal == NULL) || (tmp.value.type == DBVT_BLOB && tmp.value.pbVal == NULL) )
+ if ((!tmp.szModule) || (!tmp.szSetting) || ((tmp.value.type == DBVT_ASCIIZ || tmp.value.type == DBVT_UTF8 )&& tmp.value.pszVal == NULL) || (tmp.value.type == DBVT_BLOB && tmp.value.pbVal == NULL))
return 1;
// the db format can't tolerate more than 255 bytes of space (incl. null) for settings+module name
settingNameLen=(int)strlen(tmp.szSetting);