summaryrefslogtreecommitdiff
path: root/apt-pkg/deb/debsystem.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2015-12-27 00:51:59 +0100
committerJulian Andres Klode <jak@debian.org>2015-12-27 01:20:41 +0100
commit74dedb4ae28fd4f7c89bf769708d4f7edc7ed79a (patch)
treea1d8539a50180611afcd34fac1e597aaf286cd19 /apt-pkg/deb/debsystem.cc
parent98b063439156595f74c89e923bf4d3fd51a3b36f (diff)
Convert most callers of isspace() to isspace_ascii()
This converts all callers that read machine-generated data, callers that might work with user input are not converted.
Diffstat (limited to 'apt-pkg/deb/debsystem.cc')
-rw-r--r--apt-pkg/deb/debsystem.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/deb/debsystem.cc b/apt-pkg/deb/debsystem.cc
index dcd115b50..56ca8f4c6 100644
--- a/apt-pkg/deb/debsystem.cc
+++ b/apt-pkg/deb/debsystem.cc
@@ -399,10 +399,10 @@ std::vector<std::string> debSystem::SupportedArchitectures() /*{{{*/
char* tok_saveptr;
char* arch = strtok_r(buf, " ", &tok_saveptr);
while (arch != NULL) {
- for (; isspace(*arch) != 0; ++arch);
+ for (; isspace_ascii(*arch) != 0; ++arch);
if (arch[0] != '\0') {
char const* archend = arch;
- for (; isspace(*archend) == 0 && *archend != '\0'; ++archend);
+ for (; isspace_ascii(*archend) == 0 && *archend != '\0'; ++archend);
string a(arch, (archend - arch));
if (std::find(archs.begin(), archs.end(), a) == archs.end())
archs.push_back(a);