mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Fix assertion failures on str
operations
This commit is contained in:
parent
2a13fca737
commit
173ca3e58e
2 changed files with 22 additions and 8 deletions
|
@ -83,7 +83,7 @@ void PickFile(const char *name, Listener *obj, Event& event)
|
|||
if (name && *name && strchr(name, '/')) {
|
||||
currentpath = name;
|
||||
|
||||
for (i = currentpath.length(); i > 0; i--) {
|
||||
for (i = currentpath.length() - 1; i > 0; i--) {
|
||||
if (currentpath[i] == '/') {
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue