diff options
author | Jan Grulich <jgrulich@redhat.com> | 2018-11-20 10:44:39 +0100 |
---|---|---|
committer | Jan Grulich <jgrulich@redhat.com> | 2018-11-20 10:45:20 +0100 |
commit | a5720e571939ff452967cf9cdb1b7d8665708739 (patch) | |
tree | e61595aea20bf880ac0b52911a2813e110028968 /vncviewer/OptionsDialog.cxx | |
parent | 46f718f6472f87fa26633346a4b343a51b0c7f7a (diff) | |
download | tigervnc-a5720e571939ff452967cf9cdb1b7d8665708739.tar.gz tigervnc-a5720e571939ff452967cf9cdb1b7d8665708739.zip |
Fix memory leaks
Diffstat (limited to 'vncviewer/OptionsDialog.cxx')
-rw-r--r-- | vncviewer/OptionsDialog.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vncviewer/OptionsDialog.cxx b/vncviewer/OptionsDialog.cxx index b018c95b..62b5d9c5 100644 --- a/vncviewer/OptionsDialog.cxx +++ b/vncviewer/OptionsDialog.cxx @@ -282,7 +282,7 @@ void OptionsDialog::loadOptions(void) /* Screen */ int width, height; - if (sscanf(desktopSize.getValueStr(), "%dx%d", &width, &height) != 2) { + if (sscanf((const char*)desktopSize, "%dx%d", &width, &height) != 2) { desktopSizeCheckbox->value(false); desktopWidthInput->value("1024"); desktopHeightInput->value("768"); |