[os_env/linux]: change env buffer size definition on Linux

git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@32 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
ChenHengming
2015-08-05 07:48:49 +00:00
parent f3b638a851
commit c60d482549

View File

@@ -18,7 +18,7 @@
#include <stdlib.h> #include <stdlib.h>
#include "os_env.h" #include "os_env.h"
#define ENV_BUF_SIZE_WIN 1024 #define ENV_BUF_SIZE_LINUX 1024
RK_S32 os_get_env_u32(const char *name, RK_U32 *val) RK_S32 os_get_env_u32(const char *name, RK_U32 *val)
{ {
@@ -35,7 +35,7 @@ RK_S32 os_get_env_str(const char *name, char **val)
RK_S32 os_set_env_u32(const char *name, RK_U32 val) RK_S32 os_set_env_u32(const char *name, RK_U32 val)
{ {
char buf[ENV_BUF_SIZE_WIN]; char buf[ENV_BUF_SIZE_LINUX];
snprintf(buf, sizeof(buf), "%u", val); snprintf(buf, sizeof(buf), "%u", val);
return setenv(name, buf, 1); return setenv(name, buf, 1);
} }