groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] problem with preconv and sample_docs.mom


From: Ralph Corderoy
Subject: Re: [Groff] problem with preconv and sample_docs.mom
Date: Sun, 05 Nov 2017 14:19:44 +0000

Hi Bertrand,

> You are right; here is a patch to fix all that, does it look OK to you?
...
> +  /* uchardet 0.0.1 could return an empty string instead of NULL */
> +  if (charset && *charset) {
>      ret = (char *)calloc(strlen(charset) + 1, 1);
>      strcpy(ret, charset);
>    }

Yep.  The calloc() could be malloc() for a little less noise.
Thanks for fixing it.

-- 
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy



reply via email to

[Prev in Thread] Current Thread [Next in Thread]