aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2015-03-11 19:48:56 -0700
committerTimothy Gu <timothygu99@gmail.com>2015-03-11 19:54:28 -0700
commit87f5cd065c27148d983401f43f56d9432a2034ad (patch)
treed1eaaf5bd229abac1fdf2c5978a07f6d3a0b9a7e
parentbc08f587e62e5842b10b5d68ee159ac3fbf74546 (diff)
downloaddlfcn-win32-87f5cd065c27148d983401f43f56d9432a2034ad.tar.gz
dlfcn-win32-87f5cd065c27148d983401f43f56d9432a2034ad.tar.bz2
dlfcn-win32-87f5cd065c27148d983401f43f56d9432a2034ad.zip
Use more secure sprintf_s()
-rw-r--r--dlfcn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dlfcn.c b/dlfcn.c
index 3f5032d..46c85ce 100644
--- a/dlfcn.c
+++ b/dlfcn.c
@@ -162,7 +162,7 @@ static void save_err_ptr_str( const void *ptr )
162{ 162{
163 char ptr_buf[19]; /* 0x<pointer> up to 64 bits. */ 163 char ptr_buf[19]; /* 0x<pointer> up to 64 bits. */
164 164
165 sprintf( ptr_buf, "0x%p", ptr ); 165 sprintf_s( ptr_buf, 19, "0x%p", ptr );
166 166
167 save_err_str( ptr_buf ); 167 save_err_str( ptr_buf );
168} 168}