]> git.lyx.org Git - features.git/blobdiff - src/support/filetools.C
Herbert's bugfix patch
[features.git] / src / support / filetools.C
index 8b7b9d9c17ed6540dcac4e9a6dd916e6d7d14b1d..515e2ea8e163ac31dae7083bb50ce6b973158ff3 100644 (file)
@@ -1051,7 +1051,7 @@ string const unzipFile(string const & zipped_file)
     string const file = ChangeExtension(zipped_file, string());
     string  const tempfile = lyx::tempName(string(), file);
     // Run gunzip
-    string const command = "gunzip -c "+file+" > "+tempfile;
+    string const command = "gunzip -c "+zipped_file+" > "+tempfile;
     Systemcalls one(Systemcalls::System, command);
     // test that command was executed successfully
     return tempfile;