We shoulnd't be using ERR_ codes here, so change it to a posix one.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@97 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
David Reid
2002-07-11 21:47:09 +00:00
parent 47cfcef2aa
commit 66da50355a
+1 -1
View File
@@ -100,7 +100,7 @@ int read_file_in_buffer(const char *filename,char **buffer)
return err;
*buffer = malloc(stat.st_size + 1);
if(*buffer == NULL) return ERR_NO_MEMORY;
if(*buffer == NULL) return ENOMEM;
size = sys_read(file_no,*buffer,0,stat.st_size);