Changeset 22 for trunk/src/sh_schedule.c
- Timestamp:
- Feb 23, 2006, 12:03:58 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_schedule.c
r1 r22 53 53 #endif 54 54 55 #include "samhain.h" 55 56 #include "sh_mem.h" 56 57 … … 318 319 char * copy; 319 320 int i = 0; 321 size_t len; 320 322 321 323 if (!ssched || !isched) 322 324 return -1; 323 325 326 len = strlen(ssched)+1; 324 327 #ifdef TESTONLY 325 copy = malloc( strlen(ssched)+1); /* testonly code */326 #else 327 copy = SH_ALLOC( strlen(ssched)+1);328 #endif 329 s trcpy(copy, ssched); /* known to fit */328 copy = malloc(len); /* testonly code */ 329 #else 330 copy = SH_ALLOC(len); 331 #endif 332 sl_strlcpy(copy, ssched, len); 330 333 331 334 p = strtok(copy, " \t"); /* parse crontab-style schedule */
Note:
See TracChangeset
for help on using the changeset viewer.