use a constant for the mod dir buffer size
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
#include "stk_version.h"
|
||||
#include <stdlib.h>
|
||||
|
||||
#define MOD_DIR_BUFFER_SIZE 32
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ void *platform_get_symbol(void *handle, const char *symbol);
|
||||
|
||||
typedef void (*stk_module_func)(void);
|
||||
|
||||
char *stk_mod_dir = NULL;
|
||||
char stk_mod_dir[MOD_DIR_BUFFER_SIZE];
|
||||
static void **stk_handles = NULL;
|
||||
static stk_module_func *stk_inits = NULL;
|
||||
static stk_module_func *stk_shutdowns = NULL;
|
||||
|
||||
Reference in New Issue
Block a user