aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/c_src/info.h
diff options
context:
space:
mode:
authorDoug Hogan <[email protected]>2019-01-03 18:55:31 -0800
committerDoug Hogan <[email protected]>2019-01-08 00:08:22 -0800
commitc41e0bb6d6981ab6fcf33365efa6ddd194fddd39 (patch)
tree526c206e63bdf13323c10c3fbf4d100a86391955 /lib/crypto/c_src/info.h
parent7ad28fd1bd0b6504c78c5d76903878cebd5cd631 (diff)
downloadotp-c41e0bb6d6981ab6fcf33365efa6ddd194fddd39.tar.gz
otp-c41e0bb6d6981ab6fcf33365efa6ddd194fddd39.tar.bz2
otp-c41e0bb6d6981ab6fcf33365efa6ddd194fddd39.zip
Revamp change_basename()
* Change the parameter from int to size_t. - Only caller doesn't need to change since it was already passing sizeof(). * Add unsigned wrapping checks.
Diffstat (limited to 'lib/crypto/c_src/info.h')
-rw-r--r--lib/crypto/c_src/info.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/crypto/c_src/info.h b/lib/crypto/c_src/info.h
index 4f8822ddd7..67690625c9 100644
--- a/lib/crypto/c_src/info.h
+++ b/lib/crypto/c_src/info.h
@@ -26,7 +26,7 @@
#ifdef HAVE_DYNAMIC_CRYPTO_LIB
extern char *crypto_callback_name;
-int change_basename(ErlNifBinary* bin, char* buf, int bufsz, const char* newfile);
+int change_basename(ErlNifBinary* bin, char* buf, size_t bufsz, const char* newfile);
void error_handler(void* null, const char* errstr);
#endif