diff options
Diffstat (limited to 'tbl_qcmd.c')
-rw-r--r-- | tbl_qcmd.c | 32 |
1 files changed, 0 insertions, 32 deletions
@@ -273,35 +273,3 @@ int tbl_cmd_param_set(tble_cmd_param *cmd_param, tble_qcmd *cmd) return 0; } - - -char *alloc_new_str_s(char *str, size_t size) -{ - char *ret = NULL; - - if (str == NULL) - { - return NULL; - } - - //1MB is enought - if (size > (1024*1024)) - { - return NULL; - } - - ret = malloc(size); - if (ret == NULL) - { - return NULL; - } - - memcpy(ret, str, size); - - return ret; -} - -char *alloc_new_str(char *str) -{ - return alloc_new_str_s(str, strlen(str)); -}
\ No newline at end of file |