Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-projects commit in portage-utils: main.c
Date: Thu, 22 Dec 2011 17:11:21
Message-Id: 20111222171111.9B6282004B@flycatcher.gentoo.org
1 vapier 11/12/22 17:11:11
2
3 Modified: main.c
4 Log:
5 make sure to clear out -* symbol too
6
7 Revision Changes Path
8 1.212 portage-utils/main.c
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/main.c?rev=1.212&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/main.c?rev=1.212&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/main.c?r1=1.211&r2=1.212
13
14 Index: main.c
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-projects/portage-utils/main.c,v
17 retrieving revision 1.211
18 retrieving revision 1.212
19 diff -u -r1.211 -r1.212
20 --- main.c 21 Dec 2011 04:35:09 -0000 1.211
21 +++ main.c 22 Dec 2011 17:11:11 -0000 1.212
22 @@ -1,7 +1,7 @@
23 /*
24 * Copyright 2005-2008 Gentoo Foundation
25 * Distributed under the terms of the GNU General Public License v2
26 - * $Header: /var/cvsroot/gentoo-projects/portage-utils/main.c,v 1.211 2011/12/21 04:35:09 vapier Exp $
27 + * $Header: /var/cvsroot/gentoo-projects/portage-utils/main.c,v 1.212 2011/12/22 17:11:11 vapier Exp $
28 *
29 * Copyright 2005-2008 Ned Ludd - <solar@g.o>
30 * Copyright 2005-2008 Mike Frysinger - <vapier@g.o>
31 @@ -458,7 +458,7 @@
32 memcpy(nv, s, len + 1);
33
34 while ((p = strstr(nv, "-*")) != NULL)
35 - memset(*value, ' ', p - *value);
36 + memset(*value, ' ', p - *value + 2);
37
38 /* This function is mainly used by the startup code for parsing
39 make.conf and stacking variables remove.