Opened 16 years ago

Last modified 16 years ago

#1052 closed defect (fixed)

ogrinfo command line parser problem

Reported by: szekerest@… Owned by: warmerdam
Priority: high Milestone:
Component: default Version: unspecified
Severity: normal Keywords:


Some of the command line parameters of ogrinfo are compared with incorrect size like

else if( EQUALN(papszArgv[iArg],"-al",2) )
            bAllLayers = TRUE;
        else if( EQUALN(papszArgv[iArg],"-so",2) )
            bSummaryOnly = TRUE;

may result in accepting other parameters then expected. In the previous example
-a and -s are valid parameters. So if you will add new arguments starting with
theese letters unexpected interference may occur with the older ones.

Tamas Szekeres

Change History (1)

comment:1 by warmerdam, 16 years ago

Changed to EQUAL(). 

Note: See TracTickets for help on using tickets.