--- a/source/libc/system.inc 2011-07-24 00:42:00.000000000 +0200 +++ b/source/libc/system.inc 2011-09-21 23:03:12.000000000 +0200 @@ -91,7 +91,9 @@ stos byte [edi] or al,al jnz copy_path - cmp edi,buffer+1000h + mov eax,buffer + add eax,1000h + cmp edi,eax ja out_of_memory ret create: