1
0
mirror of https://github.com/adtools/clib2.git synced 2026-01-13 01:07:41 +00:00

Only uses MEMF_PRIVATE on OS4 now

This commit is contained in:
obarthel
2016-12-04 11:12:32 +01:00
parent 29e02775fb
commit bc3e19abe5

View File

@ -117,9 +117,20 @@ call_main(void)
struct Process * this_process = (struct Process *)FindTask(NULL);
UBYTE * arg_str = GetArgStr();
size_t arg_str_len = strlen(arg_str);
UBYTE * arg_str_copy = AllocVec(arg_str_len+1,MEMF_PRIVATE);
UBYTE * arg_str_copy;
UBYTE current_dir_name[256];
#if defined(__amigaos4__)
{
arg_str_copy = AllocVec(arg_str_len+1,MEMF_PRIVATE);
}
#else
{
arg_str_copy = AllocVec(arg_str_len+1,MEMF_ANY);
}
#endif /* __amigaos4__ */
if(arg_str_copy != NULL && NameFromLock(this_process->pr_CurrentDir,current_dir_name,sizeof(current_dir_name)))
{
strcpy(arg_str_copy,arg_str);