IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17842 for trunk/psLib


Ignore:
Timestamp:
May 28, 2008, 4:53:20 PM (18 years ago)
Author:
jhoblitt
Message:

make sure index regex doesn't match uindex

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/db/psDB.c

    r17841 r17842  
    2323 * 4.1.2 or newer is required.
    2424 *
    25  * $Id: psDB.c,v 1.155 2008-05-29 02:43:04 jhoblitt Exp $
     25 * $Id: psDB.c,v 1.156 2008-05-29 02:53:20 jhoblitt Exp $
    2626 */
    2727
     
    17091709        int             errbuf_size = 1024;
    17101710        char            errbuf[errbuf_size];
    1711         char            *pattern = "INDEX[:space:]*[(]([^)]*)";
     1711        // don't accidentally match uindex
     1712        char            *pattern = "[^U]INDEX[:space:]*[(]([^)]*)";
    17121713
    17131714        int status = regcomp(&myregex, pattern, REG_EXTENDED|REG_ICASE);
Note: See TracChangeset for help on using the changeset viewer.