X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsrc%2Fstring.c;h=cec59506dbe46420e3a620dfd3f3198169bf7efa;hb=d953610fa77ec9a08fad9c1a183181079a79674e;hp=b59ed668f703c51856464591f0ab0edae9589d1b;hpb=c0b9d3e87264ae274b37116103ecc9e1d1b0c647;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/src/src/string.c b/src/src/string.c index b59ed668f..cec59506d 100644 --- a/src/src/string.c +++ b/src/src/string.c @@ -306,7 +306,7 @@ expanded string. */ ss = store_get(length + nonprintcount * 3 + 1); -/* Copy everying, escaping non printers. */ +/* Copy everything, escaping non printers. */ t = s; tt = ss; @@ -974,14 +974,14 @@ return buffer; ************************************************/ /* This function is used to build a list, returning an allocated null-terminated growable string. The -given element has any embedded seperator characters +given element has any embedded separator characters doubled. Arguments: list points to the start of the list that is being built, or NULL if this is a new list that has no contents yet - sep list seperator charactoer - ele new lement to be appended to the list + sep list separator character + ele new element to be appended to the list Returns: pointer to the start of the list, changed if copied for expansion. */ @@ -1141,7 +1141,7 @@ common use is a null string and zero size and pointer, on first use for a string being built. The "if" above then allocates, but Coverity assume that the "if" might not happen and whines for a null-deref done by the memcpy(). */ -/* coverity[deref_parm_field_in_call] */ +/* coverity[deref_parm_field_in_call] : FALSE */ memcpy(string + p, s, count); *ptr = p + count; return string;