[BusyBox] [PATCH] tftp getopt and optarg
Glenn McGrath
bug1 at optushome.com.au
Tue Apr 30 05:32:03 UTC 2002
On Tue, 30 Apr 2002 12:22:55 +0200
"Magnus Damm" <damm at opensource.se> wrote:
> Hi again,
>
> I'm no master when it comes to getopt, but to me it seems
> perfectly legal to store the pointer that optarg provides.
>
> Or?
>
> I've made a patch for tftp which removes the xstrdup().
> This will remove one more memory leak.
>
Yes, good point, i thought that optarg might have been a overwritten by
following arguments, but a little checking finds that it isnt overwritten.
Glenn
More information about the busybox
mailing list