Ignore:
Timestamp:
Jun 3, 2009, 7:10:19 PM (15 years ago)
Author:
Bruno Cornec
Message:

r3089@localhost: bruno | 2009-05-18 06:41:05 +0200

  • move call to asprintf to call to mr_asprintf (suppress a compiler warning)
  • remove all the most obvious bad call to strcat and replace by mr_strcat as appropriate
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mondo/src/common/libmondo-string.c

    r2209 r2211  
    88
    99#include "my-stuff.h"
     10#include "mr_mem.h"
    1011#include "mondostructures.h"
    1112#include "libmondo-string.h"
     
    630631    if (strlen(flaws_str) > 0) {
    631632        paranoid_free(flaws_str_A);
    632         asprintf(&flaws_str_A, "%s", flaws_str + 1);
     633        mr_asprintf(&flaws_str_A, "%s", flaws_str + 1);
    633634    }
    634635    if (strlen(flaws_str_A) >= 74) {
    635636        for (i = 74; flaws_str_A[i] != ' '; i--);
    636637        paranoid_free(flaws_str_B);
    637         asprintf(&flaws_str_B, "%s", flaws_str_A + i + 1);
     638        mr_asprintf(&flaws_str_B, "%s", flaws_str_A + i + 1);
    638639        flaws_str_A[i] = '\0';
    639640    }
     
    641642        for (i = 74; flaws_str_B[i] != ' '; i--);
    642643        paranoid_free(flaws_str_C);
    643         asprintf(&flaws_str_C, "%s", flaws_str_B + i + 1);
     644        mr_asprintf(&flaws_str_C, "%s", flaws_str_B + i + 1);
    644645        flaws_str_B[i] = '\0';
    645646    }
Note: See TracChangeset for help on using the changeset viewer.