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:
François Revol 2005-01-04 09:21:21 +00:00
parent 0bf9534d45
commit 8a90bc6132
1 changed files with 1 additions and 1 deletions

View File

@ -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 {