summaryrefslogtreecommitdiff
path: root/apt-pkg/sourcelist.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2011-11-10 16:10:55 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2011-11-10 16:10:55 +0100
commit37adedc9d0b66eeae7efb88aebd08dfbc6e06f77 (patch)
treeb0769df88e2b6496f23e3d899aeb1c240a3488d9 /apt-pkg/sourcelist.cc
parentcf4f17a9d87a36b20ef5afa2cb5145e466d8ad3b (diff)
parent04340db392f14e2610189db6f8787e10fbf3c6d0 (diff)
merged from lp:~donkult/apt/experimental
Diffstat (limited to 'apt-pkg/sourcelist.cc')
-rw-r--r--apt-pkg/sourcelist.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/sourcelist.cc b/apt-pkg/sourcelist.cc
index 46025fc74..f5f458099 100644
--- a/apt-pkg/sourcelist.cc
+++ b/apt-pkg/sourcelist.cc
@@ -270,7 +270,7 @@ bool pkgSourceList::ReadAppend(string File)
// CNC:2003-02-20 - Do not break if '#' is inside [].
for (I = Buffer; *I != 0 && *I != '#'; I++)
if (*I == '[')
- for (I++; *I != 0 && *I != ']'; I++);
+ I = strchr(I + 1, ']');
*I = 0;
const char *C = _strstrip(Buffer);