X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Ftrimcpy.c;h=ffa6b575e8fd4641f663fd5ee63769043aa20451;hp=f24563ce73e25ee045a4c79bcb87680eba93279d;hb=fc9279e818dfc96c63a5d75a89080cc68cfe1170;hpb=a485ed478abbd599d8c9aab48934e7a26733ecb1 diff --git a/sbr/trimcpy.c b/sbr/trimcpy.c index f24563c..ffa6b57 100644 --- a/sbr/trimcpy.c +++ b/sbr/trimcpy.c @@ -1,18 +1,20 @@ /* - * trimcpy.c -- strip leading and trailing whitespace, - * -- replace internal whitespace with spaces, - * -- then return a copy. - * - * This code is Copyright (c) 2002, by the authors of nmh. See the - * COPYRIGHT file in the root directory of the nmh distribution for - * complete copyright information. - */ +** trimcpy.c -- strip leading and trailing whitespace, +** -- replace internal whitespace with spaces, +** -- then return a copy. +** +** This code is Copyright (c) 2002, by the authors of nmh. See the +** COPYRIGHT file in the root directory of the nmh distribution for +** complete copyright information. +*/ #include +#include +#include char * -trimcpy (unsigned char *cp) +trimcpy(unsigned char *cp) { unsigned char *sp; @@ -35,5 +37,5 @@ trimcpy (unsigned char *cp) } /* now return a copy */ - return getcpy(cp); + return mh_xstrdup(cp); }