Re: [Qemu-devel] [PATCH] [REPOST] Simplily linux-user/path.c

2007-03-20 Thread Kirill A. Shutemov
On [Fri, 23.02.2007 16:58], Thiemo Seufer wrote: > Kirill A. Shutemov wrote: > > Fixed version of the patch in the attacment. Please, comment. > [snip] > > /* Look for path in emulation dir, otherwise return name. */ > > const char *path(const char *name) > > { > > +char *newname = (char *)

Re: [Qemu-devel] [PATCH] [REPOST] Simplily linux-user/path.c

2007-02-23 Thread Thiemo Seufer
Kirill A. Shutemov wrote: > Fixed version of the patch in the attacment. Please, comment. [snip] > /* Look for path in emulation dir, otherwise return name. */ > const char *path(const char *name) > { > +char *newname = (char *) alloca(strlen(pref)+strlen(name)+1); > +struct stat buf; >