Changeset 2316 in MondoRescue for branches/2.2.10/mondo/src/common/libmondo-fork.c
- Timestamp:
- Aug 18, 2009, 2:34:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/common/libmondo-fork.c
r2315 r2316 248 248 char *callstr = NULL; 249 249 char incoming[MAX_STR_LEN * 2]; 250 char tmp[MAX_STR_LEN * 2];251 250 char *tmp1 = NULL; 252 char initial_label[MAX_STR_LEN * 2];253 251 254 252 /*@ int ********************************************************* */ 255 253 int res; 256 254 int i; 257 int len;258 255 bool log_if_failure = FALSE; 259 256 bool log_if_success = FALSE; … … 284 281 285 282 286 len = (int) strlen(program);287 for (i = 0; i < 35 - len / 2; i++) {288 tmp[i] = '-';289 }290 tmp[i] = '\0';291 strcat(tmp, " ");292 strcat(tmp, program);293 strcat(tmp, " ");294 for (i = 0; i < 35 - len / 2; i++) {295 strcat(tmp, "-");296 }297 strcpy(initial_label, tmp);298 283 res = system(callstr); 299 284 if (((res == 0) && log_if_success) || ((res != 0) && log_if_failure)) { 300 285 log_msg(0, "running: %s", callstr); 301 log_msg(0, 302 "--------------------------------start of output-----------------------------"); 286 log_msg(0, "--------------------------------start of output-----------------------------"); 303 287 } 304 288 mr_free(callstr);
Note:
See TracChangeset
for help on using the changeset viewer.