and the GNU variant is a whopping two lines of code:
char *base = strrchr(path, '/');
return base ? base + 1 : (char *)path;
and we get straight to an example of why your solutions don't scale.
your replacement is wrong. and ironically, it's wrong on Windows,
which is the whole point of your
https://sourceware.org/bugzilla/show_bug.cgi?id=21199
Bug ID: 21199
Summary: elf_update might "fill" over existing section data
Product: elfutils
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Com
On 24 Feb 2017 10:42, Ulf Hermann wrote:
> >> and the GNU variant is a whopping two lines of code:
> >>
> >> char *base = strrchr(path, '/');
> >> return base ? base + 1 : (char *)path;
> >
> > and we get straight to an example of why your solutions don't scale.
> > your replacement is wrong. and