Re: [PATCH] libiberty: dupargv: rewrite to use xstrdup

2016-01-05 Thread Ian Lance Taylor
On Sat, Jan 2, 2016 at 10:36 PM, Mike Frysinger wrote: > This func is basically open coding the xstrdup function, so gut it > and use it directly. > > 2016-01-03 Mike Frysinger > > * argv.c (dupargv): Replace strlen/xmalloc/strcpy with xstrdup. This is OK. Thanks. Ian

[PATCH] libiberty: dupargv: rewrite to use xstrdup

2016-01-02 Thread Mike Frysinger
This func is basically open coding the xstrdup function, so gut it and use it directly. 2016-01-03 Mike Frysinger * argv.c (dupargv): Replace strlen/xmalloc/strcpy with xstrdup. --- libiberty/argv.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libiberty/arg