Fixed size of string buffer.

This commit is contained in:
Armin Novak 2015-06-02 12:45:14 +02:00
parent ea1dae219d
commit 6b4cc2ff25
1 changed files with 2 additions and 2 deletions

View File

@ -492,10 +492,10 @@ rdpSettings* freerdp_settings_new(DWORD flags)
free (base);
} else {
int i;
char product[MAX_PATH];
char product[sizeof(FREERDP_PRODUCT_STRING)];
memset(product, 0, sizeof(product));
for (i=0; i<sizeof(FREERDP_PRODUCT_STRING); i++)
for (i=0; i<sizeof(product); i++)
product[i] = tolower(FREERDP_PRODUCT_STRING[i]);
settings->ConfigPath = GetKnownSubPath(