summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvisvgm/dvisvgm-src/src/Ghostscript.cpp
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-09-13 17:10:25 +0000
committerKarl Berry <karl@freefriends.org>2018-09-13 17:10:25 +0000
commit854bfe4d7f98595f6566c169b98f237eb017f83f (patch)
tree7bff265a0ba15c3fdb666765f220655e55d74c20 /Build/source/texk/dvisvgm/dvisvgm-src/src/Ghostscript.cpp
parentb3cade537fb6d988be46152d0959f896f9505cc5 (diff)
dvisvgm 2.6
git-svn-id: svn://tug.org/texlive/trunk@48654 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvisvgm/dvisvgm-src/src/Ghostscript.cpp')
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-src/src/Ghostscript.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Build/source/texk/dvisvgm/dvisvgm-src/src/Ghostscript.cpp b/Build/source/texk/dvisvgm/dvisvgm-src/src/Ghostscript.cpp
index cbb3589efc8..4d64fc6996b 100644
--- a/Build/source/texk/dvisvgm/dvisvgm-src/src/Ghostscript.cpp
+++ b/Build/source/texk/dvisvgm/dvisvgm-src/src/Ghostscript.cpp
@@ -64,8 +64,8 @@ static string get_path_from_registry () {
int major_version;
iss >> major_version;
if (major_version >= 7) {
- char dll_path[256]; // path to Ghostscript DLL stored in the registry
- DWORD length;
+ char dll_path[512]; // path to Ghostscript DLL stored in the registry
+ DWORD length = 512;
if (RegGetValueA(hkey, subkey, "GS_DLL", RRF_RT_REG_SZ, 0, dll_path, &length) == ERROR_SUCCESS) {
RegCloseKey(hkey);
return dll_path;