diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2011-09-21 18:42:08 +0200 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2011-09-21 18:42:08 +0200 |
commit | 404528bd581a4d2fa3bae1834d6fde48c6153434 (patch) | |
tree | d8a1205508b156eae383251fc3508ec27974443b /apt-pkg/sourcelist.cc | |
parent | 778559db797ce61611e2b761b24dcb49c49f2652 (diff) |
convert a few for-loop char finds to proper strchr and memchr
Diffstat (limited to 'apt-pkg/sourcelist.cc')
-rw-r--r-- | apt-pkg/sourcelist.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/sourcelist.cc b/apt-pkg/sourcelist.cc index a25358bf2..ebfb5289e 100644 --- a/apt-pkg/sourcelist.cc +++ b/apt-pkg/sourcelist.cc @@ -266,7 +266,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); |