Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_schedule.c

    r22 r1  
    5353#endif
    5454
    55 #include "samhain.h"
    5655#include "sh_mem.h"
    5756
     
    319318  char * copy;
    320319  int    i = 0;
    321   size_t len;
    322320
    323321  if (!ssched || !isched)
    324322    return -1;
    325323
    326   len = strlen(ssched)+1;
    327324#ifdef TESTONLY
    328   copy = malloc(len);                 /* testonly code */
    329 #else
    330   copy = SH_ALLOC(len);
    331 #endif
    332   sl_strlcpy(copy, ssched, len);
     325  copy = malloc(strlen(ssched)+1);                 /* testonly code */
     326#else
     327  copy = SH_ALLOC(strlen(ssched)+1);
     328#endif
     329  strcpy(copy, ssched);                            /* known to fit  */
    333330
    334331  p = strtok(copy, " \t"); /* parse crontab-style schedule */
Note: See TracChangeset for help on using the changeset viewer.