[Xastir] NWS objects

Curt Mills, WE7U hacker at tc.fluke.com
Wed Apr 16 17:26:09 EDT 2003


On Wed, 16 Apr 2003, dale huguley wrote:

> Curt Mills, WE7U wrote:
>
> >
> >We use "strcasecmp()" instead of an "strncasecmp()", which would
> >have restricted the string match to a smaller number of characters.
> >The two strings have to match exactly, including length, before the
> >packet is igated.  We make no provision for '*' characters or
> >partial matches in any way.
> >
> >
> >
> This somewhat surprizes me- If you wanted to gate everything from Green
> Bay Weather, it would take GRBTOR GRBSVR GRBSVS GRBNPW GRBFFW GRBFFS and
> on and on.
> I would swear it didn't work like this a year ago.

I would swear we haven't changed that section of code in a very long
time, but I could be wrong.  I think I code in my sleep sometimes.


> I would set a minimum of 3 letters to compare- this would define a
> weather service office- would keep someone from putting "S" as a station
> an getting all the NWS offices that start with "S".

I was thinking about a 3-char minimum as well.  That would keep
people from putting in every letter of the alphabet on each of 26
lines in the file, and gating EVERYTHING to RF.

-- 
Curt Mills, WE7U                    hacker_NO_SPAM_ at tc.fluke.com
Senior Methods Engineer/SysAdmin
"Lotto:    A tax on people who are bad at math!"
"Windows:  Microsoft's tax on computer illiterates!" -- WE7U
"The world DOES revolve around me:  I picked the coordinate system!"



More information about the Xastir mailing list