Changeset 1190


Ignore:
Timestamp:
Feb 20, 2007, 11:11:47 AM (12 years ago)
Author:
bruno
Message:

Fix a bad mr_strcat usage (replace by mr_asprintf)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/mondoarchive/mondoarchive.c

    r1187 r1190  
    1818
    1919#include "my-stuff.h"
    20 #include "../common/mondostructures.h"
    21 #include "../common/libmondo.h"
     20#include "mondostructures.h"
     21#include "libmondo.h"
    2222#include "mondo-cli-EXT.h"
    2323
     
    152152    int retval = 0;
    153153    char *say_at_end = NULL;
     154    char *say_at_end2 = NULL;
    154155
    155156#ifdef ENABLE_NLS
     
    365366        res = verify_data(bkpinfo);
    366367        if (res < 0) {
    367             mr_strcat(say_at_end, _("%d difference%c found."), -res,
     368            mr_asprintf(&say_at_end2, _("%d difference%c found."), -res,
    368369                    (-res != 1) ? 's' : ' ');
    369370            res = 0;
     
    409410    log_to_screen(say_at_end);
    410411    mr_free(say_at_end);
     412    if (say_at_end2 != NULL) {
     413        log_to_screen(say_at_end2);
     414        mr_free(say_at_end2);
     415    }
    411416
    412417    mr_asprintf(&tmp, "umount %s/tmpfs", bkpinfo->tmpdir);
Note: See TracChangeset for help on using the changeset viewer.