define MAXLEN_CLASSNAME to 31

This commit is contained in:
VincentWei
2018-01-28 01:07:34 +08:00
parent 9df26d14bf
commit 8ddeb9806b
3 changed files with 13 additions and 2 deletions
+10
View File
@@ -0,0 +1,10 @@
*.lo
*.o
*.la
*.al
*.a
*.so
Makefile
Makefile.in
.deps/
.libs/
+1 -1
View File
@@ -385,7 +385,7 @@ int AddNewControlClass (PWNDCLASS pWndClass)
char szClassName [MAXLEN_CLASSNAME + 2];
int i=0;
strncpy (szClassName, pWndClass->spClassName, MAXLEN_CLASSNAME + 1);
strncpy (szClassName, pWndClass->spClassName, MAXLEN_CLASSNAME);
if (!isalpha ((int)szClassName[0])) return ERR_CTRLCLASS_INVNAME;
+2 -1
View File
@@ -12,7 +12,8 @@
#ifndef GUI_CTRLCLASS_H
#define GUI_CTRLCLASS_H
#define MAXLEN_CLASSNAME 15
#define MAXLEN_CLASSNAME 31
typedef struct _CTRLCLASSINFO
{
char name[MAXLEN_CLASSNAME + 1];