This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On 17 Mar 2015 22:02, Jiri Gaisler wrote: > * func.c (exec_cmd) : silence compiler warnings when calling system(). > (batch) : replace fgets() with getline(). rewrote this for you > --- a/sim/erc32/func.c > +++ b/sim/erc32/func.c > @@ -80,20 +80,24 @@ batch(sregs, fname) > char *fname; > { > FILE *fp; > - char lbuf[1024]; > + char *lbuf = NULL; > + size_t len = 0; > + ssize_t tmp; i deleted this tmp for you as it's unused otherwise, pushed, thanks! -mike
Attachment:
signature.asc
Description: Digital signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |