summaryrefslogtreecommitdiff
path: root/third_party/srtp/crypto/math/datatypes.c
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/srtp/crypto/math/datatypes.c')
-rw-r--r--third_party/srtp/crypto/math/datatypes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/srtp/crypto/math/datatypes.c b/third_party/srtp/crypto/math/datatypes.c
index 4707522f..73451d71 100644
--- a/third_party/srtp/crypto/math/datatypes.c
+++ b/third_party/srtp/crypto/math/datatypes.c
@@ -113,7 +113,7 @@ octet_string_hex_string(const void *s, int length) {
length *= 2;
/* truncate string if it would be too long */
- if (length > MAX_PRINT_STRING_LEN)
+ if (length >= MAX_PRINT_STRING_LEN)
length = MAX_PRINT_STRING_LEN-1;
for (i=0; i < length; i+=2) {