Changes in trunk/src/sh_schedule.c [22:1]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_schedule.c
r22 r1 53 53 #endif 54 54 55 #include "samhain.h"56 55 #include "sh_mem.h" 57 56 … … 319 318 char * copy; 320 319 int i = 0; 321 size_t len;322 320 323 321 if (!ssched || !isched) 324 322 return -1; 325 323 326 len = strlen(ssched)+1;327 324 #ifdef TESTONLY 328 copy = malloc( len); /* testonly code */329 #else 330 copy = SH_ALLOC( len);331 #endif 332 s l_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 */ 333 330 334 331 p = strtok(copy, " \t"); /* parse crontab-style schedule */
Note:
See TracChangeset
for help on using the changeset viewer.