puni is already pointing outside of the string, no need for +1 here!
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10578 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
0bf9534d45
commit
8a90bc6132
@ -120,7 +120,7 @@ static status_t _next_dirent_(struct diri *iter, struct _dirent_info_ *oinfo,
|
||||
if (i == 0x18) i+=2;
|
||||
}
|
||||
*puni++ = 0;
|
||||
filename_len = (uchar *)(puni+1) - uni;
|
||||
filename_len = (uchar *)(puni) - uni;
|
||||
|
||||
continue;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user