From 2db7ffbaab88d63c6fbefd9c4a3419d8e90a9cb4 Mon Sep 17 00:00:00 2001 From: m-khan-glyptodon Date: Mon, 8 Apr 2019 15:00:59 -0700 Subject: [PATCH] GUACAMOLE-764: Updated variable type for offsets to uint64_t to increase rdp read to a 64-bit addressable space --- src/protocols/rdp/rdp_fs.c | 2 +- src/protocols/rdp/rdp_fs.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/protocols/rdp/rdp_fs.c b/src/protocols/rdp/rdp_fs.c index ab48cc2f..d32da681 100644 --- a/src/protocols/rdp/rdp_fs.c +++ b/src/protocols/rdp/rdp_fs.c @@ -402,7 +402,7 @@ int guac_rdp_fs_open(guac_rdp_fs* fs, const char* path, } -int guac_rdp_fs_read(guac_rdp_fs* fs, int file_id, int offset, +int guac_rdp_fs_read(guac_rdp_fs* fs, int file_id, uint64_t offset, void* buffer, int length) { int bytes_read; diff --git a/src/protocols/rdp/rdp_fs.h b/src/protocols/rdp/rdp_fs.h index 9168efb1..8148725e 100644 --- a/src/protocols/rdp/rdp_fs.h +++ b/src/protocols/rdp/rdp_fs.h @@ -487,7 +487,7 @@ int guac_rdp_fs_open(guac_rdp_fs* fs, const char* path, * error occurs. All error codes are negative values and correspond to * GUAC_RDP_FS constants, such as GUAC_RDP_FS_ENOENT. */ -int guac_rdp_fs_read(guac_rdp_fs* fs, int file_id, int offset, +int guac_rdp_fs_read(guac_rdp_fs* fs, int file_id, uint64_t offset, void* buffer, int length); /**