Ignore:
Timestamp:
Aug 18, 2009, 2:34:29 PM (15 years ago)
Author:
Bruno Cornec
Message:

r3327@localhost: bruno | 2009-08-04 00:17:46 +0200
popup_and_get_string and build_partition_name now return an allocated string

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mondo/src/common/libmondo-fork.c

    r2315 r2316  
    248248    char *callstr = NULL;
    249249    char incoming[MAX_STR_LEN * 2];
    250     char tmp[MAX_STR_LEN * 2];
    251250    char *tmp1 = NULL;
    252     char initial_label[MAX_STR_LEN * 2];
    253251
    254252    /*@ int ********************************************************* */
    255253    int res;
    256254    int i;
    257     int len;
    258255    bool log_if_failure = FALSE;
    259256    bool log_if_success = FALSE;
     
    284281
    285282
    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);
    298283    res = system(callstr);
    299284    if (((res == 0) && log_if_success) || ((res != 0) && log_if_failure)) {
    300285        log_msg(0, "running: %s", callstr);
    301         log_msg(0,
    302                 "--------------------------------start of output-----------------------------");
     286        log_msg(0, "--------------------------------start of output-----------------------------");
    303287    }
    304288    mr_free(callstr);
Note: See TracChangeset for help on using the changeset viewer.