Browse Source

* Add length check

Michaël Van Canneyt 2 years ago
parent
commit
0be4498284
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rtl/inc/exeinfo.pp

+ 1 - 1
rtl/inc/exeinfo.pp

@@ -84,7 +84,7 @@ var
 
 
 begin
 begin
   ReadDebugLink:=ReadDebugLink(e,fn);
   ReadDebugLink:=ReadDebugLink(e,fn);
-  if ReadDebugLink then
+  if ReadDebugLink and (length(fn)<256) then
     dbgfn:=fn;
     dbgfn:=fn;
 end;
 end;