summaryrefslogtreecommitdiffhomepage
path: root/src/internal
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-21 22:09:48 +0000
committermidipix <writeonce@midipix.org>2024-02-21 22:09:48 +0000
commitbb9df1d55b53becd6581f90a7c8dd54d6a72890d (patch)
tree285c2b604e2edd0ba207e107895b9202190845b2 /src/internal
parentfc7ad9f9947b5097e1a246b009b487d3206fd588 (diff)
downloadslibtool-bb9df1d55b53becd6581f90a7c8dd54d6a72890d.tar.bz2
slibtool-bb9df1d55b53becd6581f90a7c8dd54d6a72890d.tar.xz
code base: strictly conform to isspace()'s interface (int vs. signed char).
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/slibtool_lconf_impl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/internal/slibtool_lconf_impl.c b/src/internal/slibtool_lconf_impl.c
index 298cb12..9addd0a 100644
--- a/src/internal/slibtool_lconf_impl.c
+++ b/src/internal/slibtool_lconf_impl.c
@@ -629,6 +629,7 @@ static int slbt_get_lconf_var(
const char * mark;
const char * match;
ssize_t len;
+ int cint;
/* init */
len = strlen(var);
@@ -649,7 +650,7 @@ static int slbt_get_lconf_var(
while ((*mark != '\n') && (mark < cap))
mark++;
- while (isspace(*mark) && (mark < cap))
+ while (isspace((cint=*mark)) && (mark < cap))
mark++;
}
}
@@ -669,7 +670,7 @@ static int slbt_get_lconf_var(
for (; (*mark != '"') && (mark < cap); )
mark++;
} else {
- for (; !isspace(*mark) && (mark < cap); )
+ for (; !isspace((cint=*mark)) && (mark < cap); )
mark++;
}