[Xastir] length of serial port fields

Jason KG4WSV kg4wsv at gmail.com
Mon Feb 8 10:18:39 EST 2016


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


More information about the Xastir mailing list