Changeset 559e017dc530d5467cb14742be11d9f328bf4e01

Show
Ignore:
Timestamp:
09/27/11 04:20:44 (3 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1317097244 -0400
git-parent:

[dd420f2b520fa3440154229a94853621fd202434]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1317097244 -0400
Message:

use of these cause core dumps. testing testing testing.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/noit_main.c

    r9267e43 r559e017  
    5151#include "eventer/eventer.h" 
    5252 
    53 static char **enable_logs; 
     53#define MAX_CLI_LOGS 128 
     54static char *enable_logs[MAX_CLI_LOGS]; 
    5455static int enable_logs_cnt = 0; 
    55 static char **disable_logs
     56static char *disable_logs[MAX_CLI_LOGS]
    5657static int disable_logs_cnt = 0; 
    5758 
    5859void 
    5960noit_main_enable_log(const char *name) { 
     61  if(enable_logs_cnt >= MAX_CLI_LOGS) return; 
    6062  enable_logs[enable_logs_cnt++] = strdup(name); 
    6163} 
    6264void 
    6365noit_main_disable_log(const char *name) { 
     66  if(disable_logs_cnt >= MAX_CLI_LOGS) return; 
    6467  disable_logs[disable_logs_cnt++] = strdup(name); 
    6568}