mirror of
https://github.com/suchmememanyskill/TegraExplorer.git
synced 2024-11-22 11:56:42 +00:00
Empty strings should be valid
This commit is contained in:
parent
a872b90597
commit
f61fcfea32
2 changed files with 3 additions and 3 deletions
|
@ -194,8 +194,8 @@ char *utils_InputText(char *start, int maxLen){
|
|||
return buff;
|
||||
}
|
||||
|
||||
char *utils_copyStringSize(const char *in, u32 size){
|
||||
if (size > strlen(in) || size == 0)
|
||||
char *utils_copyStringSize(const char *in, int size){
|
||||
if (size > strlen(in) || size < 0)
|
||||
size = strlen(in);
|
||||
|
||||
char *out = calloc(size + 1, 1);
|
||||
|
|
|
@ -24,4 +24,4 @@ int utils_mmcMenu();
|
|||
void utils_copystring(const char *in, char **out);
|
||||
char *utils_InputText(char *start, int maxLen);
|
||||
void utils_takeScreenshot();
|
||||
char *utils_copyStringSize(const char *in, u32 size);
|
||||
char *utils_copyStringSize(const char *in, int size);
|
Loading…
Reference in a new issue