mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-24 00:54:18 +08:00
define MAXLEN_CLASSNAME to 31
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
*.lo
|
||||
*.o
|
||||
*.la
|
||||
*.al
|
||||
*.a
|
||||
*.so
|
||||
Makefile
|
||||
Makefile.in
|
||||
.deps/
|
||||
.libs/
|
||||
+1
-1
@@ -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;
|
||||
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user