# HG changeset patch # User unc0rr # Date 1461005259 -10800 # Node ID 09ebdfe364d9307573a55ee8e4586e87cd35bc90 # Parent e5c101a6fb8d8e49438cf37246226bc34c068d17 Fix fpcrtl_strappendA, which cut last char from UserPathPrefix leading to PHYSFS_setWriteDir fail with 'File not found' error, which led to lack of writing dir and logFile handle being nil, which led to crash on attempt to write to (absent) log file diff -r e5c101a6fb8d -r 09ebdfe364d9 project_files/hwc/rtl/misc.c --- a/project_files/hwc/rtl/misc.c Wed Apr 13 20:02:14 2016 -0400 +++ b/project_files/hwc/rtl/misc.c Mon Apr 18 21:47:39 2016 +0300 @@ -78,8 +78,8 @@ { if(s.len < MAX_ANSISTRING_LENGTH) { + ++s.len; s.s[s.len] = c; - ++s.len; } return s;