summaryrefslogtreecommitdiffhomepage
path: root/src/internal
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-19 20:37:52 -0400
committermidipix <writeonce@midipix.org>2016-04-19 20:39:49 -0400
commit869ddd8692a2b296eab0376d8c33c21244cc2857 (patch)
treebaa07973b762bf34594ae69111f31655fec587fc /src/internal
parent085f3a854b316e33747812e93d18a98238828ea8 (diff)
downloadslibtool-869ddd8692a2b296eab0376d8c33c21244cc2857.tar.bz2
slibtool-869ddd8692a2b296eab0376d8c33c21244cc2857.tar.xz
slbt_readlink(): avoid '\0' when assigning a value to a character type.
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/slibtool_readlink_impl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/internal/slibtool_readlink_impl.h b/src/internal/slibtool_readlink_impl.h
index f66e10b..c511147 100644
--- a/src/internal/slibtool_readlink_impl.h
+++ b/src/internal/slibtool_readlink_impl.h
@@ -18,7 +18,7 @@ static inline int slbt_readlink(
else if (ret == bufsize)
return -1;
else {
- buf[ret] = '\0';
+ buf[ret] = 0;
return 0;
}
}