diff options
-rw-r--r-- | common/stdio.c | 2 | ||||
-rw-r--r-- | include/stdio_dev.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/common/stdio.c b/common/stdio.c index f64909d9e1c..8b31a7d1f8c 100644 --- a/common/stdio.c +++ b/common/stdio.c @@ -160,7 +160,7 @@ int stdio_deregister(const char *devname) int l; struct list_head *pos; struct stdio_dev *dev; - char temp_names[3][8]; + char temp_names[MAX_FILES][STDIO_NAME_SIZE]; dev = stdio_get_by_name(devname); diff --git a/include/stdio_dev.h b/include/stdio_dev.h index 932d093345e..6ed1f12b873 100644 --- a/include/stdio_dev.h +++ b/include/stdio_dev.h @@ -35,11 +35,13 @@ #define DEV_FLAGS_SYSTEM 0x80000000 /* Device is a system device */ #define DEV_EXT_VIDEO 0x00000001 /* Video extensions supported */ +#define STDIO_NAME_SIZE 16 + /* Device information */ struct stdio_dev { int flags; /* Device flags: input/output/system */ int ext; /* Supported extensions */ - char name[16]; /* Device name */ + char name[STDIO_NAME_SIZE]; /* Device name */ /* GENERAL functions */ |