hedgewars/uMisc.pas
changeset 10127 7f29a65aa1e4
parent 10124 aabd1b75d5a3
child 10150 fa5c83fd0ad9
--- a/hedgewars/uMisc.pas	Sun Feb 09 19:00:13 2014 +0100
+++ b/hedgewars/uMisc.pas	Mon Feb 10 00:43:03 2014 +0400
@@ -256,7 +256,7 @@
 
 // allocate and fill structure that will be passed to new thread
 New(image); // will be disposed in SaveScreenshot()
-image^.filename:= UserPathPrefix + filename + ext;
+image^.filename:= shortstring(UserPathPrefix) + filename + ext;
 image^.width:= cScreenWidth div k;
 image^.height:= cScreenHeight div k;
 image^.size:= size;