From e76a020d33a5bbf281908ce2663437bc1af50a50 Mon Sep 17 00:00:00 2001 From: David Reid Date: Fri, 19 Jul 2002 01:36:28 +0000 Subject: [PATCH] Begone ERR_NO_MEMORY! git-svn-id: file:///srv/svn/repos/haiku/trunk/current@325 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/core/thread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kernel/core/thread.c b/src/kernel/core/thread.c index aa4faa20c7..62ba121164 100644 --- a/src/kernel/core/thread.c +++ b/src/kernel/core/thread.c @@ -252,7 +252,7 @@ static int user_copy_strings_array(char **strings, int strc, char ***kstrings) lstrings = (char **)kmalloc((strc + 1) * sizeof(char *)); if (lstrings == NULL){ - return ERR_NO_MEMORY; + return ENOMEM; } // scan all strings and copy to kernel space @@ -274,7 +274,7 @@ static int user_copy_strings_array(char **strings, int strc, char ***kstrings) lstrings[cnt] = (char *)kstrdup(buf); if (lstrings[cnt] == NULL){ - err = ERR_NO_MEMORY; + err = ENOMEM; goto error; } }