#1859: error in command-line parsing in ./tools/athstats.c
------------------------------+---------------------------------------------
 Reporter:  [EMAIL PROTECTED]  |             Type:  defect
   Status:  new               |         Priority:  minor 
Component:  madwifi: tools    |          Version:  trunk 
 Keywords:                    |   Patch_attached:  0     
------------------------------+---------------------------------------------
 Hi,

 am I really the first moron to run 'athstats -i' without giving the
 interface?

 In ./trunk/tools/athstats.c:244

 {{{
 244             if (argc > 1 && strcmp(argv[1], "-i") == 0) {
 245                     if (argc < 2) {
 246                             fprintf(stderr, "%s: missing interface
 name for -i\n",
 247                                     argv[0]);
 248                             exit(-1);
 249                     }
 250                     ifname = argv[2];
 251                     argc -= 2, argv += 2;
 252             }
 }}}
 the second check should obviously be 'if(argc<3)'.


 Regards,
 Zefir

-- 
Ticket URL: <http://madwifi.org/ticket/1859>
madwifi.org <http://madwifi.org/>
Multiband Atheros Driver for Wireless Fidelity
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Madwifi-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/madwifi-tickets

Reply via email to