[WIP]: Fix upload path out-of-bounds error.

This commit is contained in:
Nick Couchman 2020-04-16 13:39:34 -04:00
parent 9c37fc5617
commit ab38b6c912

View File

@ -49,7 +49,7 @@ static void __generate_upload_path(const char* filename, char* path) {
/* Add initial backslash */
*(path++) = '\\';
for (i=1; i<GUAC_RDP_FS_MAX_PATH; i++) {
for (i=1; i<i(GUAC_RDP_FS_MAX_PATH - 1); i++) {
/* Get current, stop at end */
char c = *(filename++);