[Scummvm-git-logs] scummvm master -> 9c96c353c654eb6c0c680f3dc887e5db61c8175f
aquadran
aquadran at gmail.com
Sun Mar 7 19:28:19 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
9c96c353c6 ICB: Remove '/' from path if exists
Commit: 9c96c353c654eb6c0c680f3dc887e5db61c8175f
https://github.com/scummvm/scummvm/commit/9c96c353c654eb6c0c680f3dc887e5db61c8175f
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2021-03-07T20:28:14+01:00
Commit Message:
ICB: Remove '/' from path if exists
Changed paths:
engines/icb/common/px_string.cpp
diff --git a/engines/icb/common/px_string.cpp b/engines/icb/common/px_string.cpp
index 3e294a435b..9fb8d2efea 100644
--- a/engines/icb/common/px_string.cpp
+++ b/engines/icb/common/px_string.cpp
@@ -201,6 +201,14 @@ void pxString::ConvertPath() {
*sp = (*sp == '\\' ? '/' : *sp);
sp++;
}
+ // trim '/'
+ if (*s == '/') {
+ uint32 len = strlen((char *)s);
+ sp = new char[len];
+ memcpy((unsigned char *)sp, (unsigned char *)(s + 1), len);
+ delete[] s;
+ s = sp;
+ }
}
}
More information about the Scummvm-git-logs
mailing list