diff options
author | Timothy Gu <timothygu99@gmail.com> | 2015-03-11 19:48:56 -0700 |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2015-03-11 19:54:28 -0700 |
commit | 87f5cd065c27148d983401f43f56d9432a2034ad (patch) | |
tree | d1eaaf5bd229abac1fdf2c5978a07f6d3a0b9a7e | |
parent | bc08f587e62e5842b10b5d68ee159ac3fbf74546 (diff) | |
download | dlfcn-win32-87f5cd065c27148d983401f43f56d9432a2034ad.tar.gz dlfcn-win32-87f5cd065c27148d983401f43f56d9432a2034ad.tar.bz2 dlfcn-win32-87f5cd065c27148d983401f43f56d9432a2034ad.zip |
Use more secure sprintf_s()
-rw-r--r-- | dlfcn.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 | } |