[clblas] 76/125: addBuildOpt: use strncat instead of strlcat
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Fri May 29 06:57:24 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch master
in repository clblas.
commit 9624cccb7421dbdf0d5d2eabe89721d6f394324b
Author: Christian Kellner <christian at kellner.me>
Date: Thu Jun 12 17:55:42 2014 +0200
addBuildOpt: use strncat instead of strlcat
Linux does not have strlcat.
---
src/library/blas/generic/common.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/library/blas/generic/common.c b/src/library/blas/generic/common.c
index 10ec595..fef0880 100644
--- a/src/library/blas/generic/common.c
+++ b/src/library/blas/generic/common.c
@@ -548,9 +548,10 @@ void addBuildOpt(
if (l > 0 && !isspace(opts[l-1]) && l+1 < len) {
opts[l] = ' ';
opts[l+1] = '\0';
+ l++;
}
- strlcat(opts, option, len);
+ strncat(opts, option, len - l - 1);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/clblas.git
More information about the debian-science-commits
mailing list