UI: Prevent format-truncation compiler warning

Variables path and dir with the same declared size triggers a compiler
warning about possible truncation. Although, depending on the path
where profiles are stored, its still possible to go beyong the declared
size and the path will be invalid. This will not trigger any
compilation warning and all invalid paths will be cought by the already
check in the os_glob function.
This commit is contained in:
Shaolin 2018-08-08 01:47:54 -03:00
parent bf72435db8
commit b5ee8a9a5d

View File

@ -143,7 +143,7 @@ static bool GetProfileName(QWidget *parent, std::string &name,
static bool CopyProfile(const char *fromPartial, const char *to)
{
os_glob_t *glob;
char path[512];
char path[514];
char dir[512];
int ret;