vm::null usage

This commit is contained in:
Nekotekina 2015-04-21 23:26:21 +03:00
parent 5aa6daf58f
commit f4540c2793
11 changed files with 50 additions and 50 deletions

View file

@ -1019,7 +1019,7 @@ vm::ptr<char> _sys_strncpy(vm::ptr<char> dest, vm::ptr<const char> source, u32 l
if (!dest || !source)
{
return vm::ptr<char>::make(0);
return vm::null;
}
if (strncpy(dest.get_ptr(), source.get_ptr(), len) != dest.get_ptr())