Re: patch for address.c
[email protected] Mon, 23 Dec 2002 10:37:06 -0600
| Newsgroups | gmane.mail.eps |
|---|---|
| Organization | Inter7 Internet Technologies, Inc. |
| Message-ID | <[email protected]> |
Cool. Thanks.
David Relson wrote:
>
> Greetings,
>
> As presently coded, address.c prints a nul byte when g->group is
> NULL. This is caused by a %c format spec and outputting '\0'. Using %s
> and "", as in the following patch is cleaner.
>
> David
>
> ### begin patch ###
> --- epstools-1.4/address.c.orig 2002-09-03 16:41:13.000000000 -0400
> +++ epstools-1.4/address.c 2002-12-23 09:51:00.000000000 -0500
> @@ -78,8 +78,8 @@
> return;
> }
>
> - printf("%s: %s%s%c\n", h->name, g->group ? "(of group " : "", g->group ?
> g->group : "",
> - g->group ? ')' : '\0');
> + printf("%s: %s%s%s\n", h->name, g->group ? "(of group " : "", g->group ?
> g->group : "",
> + g->group ? ")" : "");
>
> for (a = g->members; a->next; a = a->next) {
> if ((a->next->user) && (a->next->domain)) {
> ### end patch ###
>
> --------------------------------------------------------
> David Relson Osage Software Systems, Inc.
> [email protected] Ann Arbor, MI 48103
> www.osagesoftware.com tel: 734.821.8800
--
mailto:[email protected]
Matt Brookings - Chief Technical Officer
Inter7 Internet Technologies, Inc.
www.inter7.com - 847-492-0470
Prices at http://www.inter7.com/prices