diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2012-01-19 09:05:58 +0100 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2012-01-19 09:05:58 +0100 |
commit | 76dbf3cee365788eb7291c96f06b73a3769946d6 (patch) | |
tree | 96a77342412f666dac44b7db9285d859305c76f0 /apt-pkg/aptconfiguration.cc | |
parent | e08e66ca82147b72454964fdd624002f9b23290e (diff) | |
parent | 0d5603b886f67562c105b03820c595ac7ae3451a (diff) |
merged from the debian-experimental2 branch
Diffstat (limited to 'apt-pkg/aptconfiguration.cc')
-rw-r--r-- | apt-pkg/aptconfiguration.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/aptconfiguration.cc b/apt-pkg/aptconfiguration.cc index 7441b452c..c7da4cf35 100644 --- a/apt-pkg/aptconfiguration.cc +++ b/apt-pkg/aptconfiguration.cc @@ -337,7 +337,7 @@ std::vector<std::string> const Configuration::getArchitectures(bool const &Cache FILE *dpkg = popen(dpkgcall.c_str(), "r"); char buf[1024]; if(dpkg != NULL) { - if (fgets(buf, sizeof(buf), dpkg) != NULL) { + while (fgets(buf, sizeof(buf), dpkg) != NULL) { char* arch = strtok(buf, " "); while (arch != NULL) { for (; isspace(*arch) != 0; ++arch); |