[clblas] 72/125: use snprintf instead of itoa to support linux system
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Fri May 29 06:57:23 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 342cc8f517f6b48af09a269d9e7fda61a2ed3667
Author: Timmy <timmy.liu at amd.com>
Date: Thu Jun 5 16:53:54 2014 -0500
use snprintf instead of itoa to support linux system
---
src/library/blas/gens/syrxk.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/library/blas/gens/syrxk.c b/src/library/blas/gens/syrxk.c
index cf47ba9..54574ed 100644
--- a/src/library/blas/gens/syrxk.c
+++ b/src/library/blas/gens/syrxk.c
@@ -1224,7 +1224,7 @@ genUpdateGenericDiagTile(
unsigned int maxFetches = 0;
const char *yname, *xname;
const char *ldcName;
- char hexadec[1];
+ char hexadec[2];
batch = createStmtBatch();
if (batch == NULL) {
@@ -1453,7 +1453,8 @@ genUpdateGenericDiagTile(
ksprintf(&kstr, "cc%u", i);
}
else {
- itoa(iter.col, hexadec, 16);
+ snprintf(hexadec, sizeof(char)*2, "%x", iter.col);
+ //itoa(iter.col, hexadec, 16);
ksprintf(&kstr, "cc%u.s%s", i, hexadec);
}
--
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