Note a bug i introduced in exec

上级 b92d178d
...@@ -110,9 +110,9 @@ static void __attribute__((unused)) dostack(uptr a0, u64 a1) ...@@ -110,9 +110,9 @@ static void __attribute__((unused)) dostack(uptr a0, u64 a1)
for(last=s=args->path; *s; s++) for(last=s=args->path; *s; s++)
if(*s == '/') if(*s == '/')
last = s+1; last = s+1;
safestrcpy(args->proc->name, last, sizeof(args->proc->name));
// XXX(sbw) Oops, don't want to do this, unless we have abort // XXX(sbw) Oops, don't want to do this, unless we have abort
safestrcpy(args->proc->name, last, sizeof(args->proc->name));
args->proc->tf->rsp = sp; args->proc->tf->rsp = sp;
prof_end(dostack_prof); prof_end(dostack_prof);
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论