Changeset 058b664 in code


Ignore:
Timestamp:
Mar 7, 2014, 2:17:03 PM (11 years ago)
Author:
Mike Belopuhov <mike@…>
Branches:
master
Children:
a6b8c8d
Parents:
e13307d
Message:

Make sure the we don't overflow the logfiles table

File:
1 edited

Legend:

Unmodified
Added
Removed
  • logger.c

    re13307d r058b664  
    219219        FILE *fp = NULL;
    220220
     221        /* make sure not to overflow the logfiles table */
     222        if (nlogfiles == sizeof logfiles / sizeof logfiles[0])
     223                return (NULL);
    221224        snprintf(path, sizeof path, "%s/%s", logprefix, group);
    222225        if (mkdir(path, 0755) < 0 && errno != EEXIST) {
Note: See TracChangeset for help on using the changeset viewer.