[Xastir] length of serial port fields
Curt Mills
curt.we7u at gmail.com
Mon Feb 8 11:29:03 EST 2016
Doesn't look like the struct "iodevices" is used for anything.
On Mon, Feb 8, 2016 at 7:18 AM, Jason KG4WSV <kg4wsv at gmail.com> wrote:
> OK, been poking around in the source.
>
> Is this a bug? interface.h line 140:
>
> 139 typedef struct {
> 140 char device_name[100];
> 141 } iodevices;
>
>
> seems to hard code a length of 100, but the very next struct ioparam says
> on lin 146:
>
> 146 char device_name[MAX_DEVICE_NAME+1]; /* device name
> */
>
>
> I didn't chase down the code to see where these are used, but it seems odd
> that similar-looks-related structures have different max sizes.
>
> it also looks like my 75 character name should fit (MAX_DEVICE_NAME is
> 128), so I guess it's the GUI code biting me? Off to grep some more...
>
>
>
>
> -Jason
> kg4wsv
> _______________________________________________
> Xastir mailing list
> Xastir at lists.xastir.org
> http://xastir.org/mailman/listinfo/xastir
>
--
Curt, WE7U
http://wetnet.net/~we7u
http://www.sarguydigital.com
More information about the Xastir
mailing list