aboutsummaryrefslogtreecommitdiff
path: root/lib/libcrypt/misc.c
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2016-08-10 15:16:28 +0000
committerEd Schouten <ed@FreeBSD.org>2016-08-10 15:16:28 +0000
commit5f521d7ba72145092ea23ff6081d8791ad6c1f9d (patch)
tree80c95ae1764bc54824036934952da43ecbf095e2 /lib/libcrypt/misc.c
parent3a77833e87a68b01242cfe5f7d0002be04f1a0b0 (diff)
Notes
Diffstat (limited to 'lib/libcrypt/misc.c')
-rw-r--r--lib/libcrypt/misc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libcrypt/misc.c b/lib/libcrypt/misc.c
index 0f63ce04214c..2202ffb652cd 100644
--- a/lib/libcrypt/misc.c
+++ b/lib/libcrypt/misc.c
@@ -47,7 +47,7 @@ _crypt_to64(char *s, u_long v, int n)
}
void
-b64_from_24bit(uint8_t B2, uint8_t B1, uint8_t B0, int n, int *buflen, char **cp)
+b64_from_24bit(uint8_t B2, uint8_t B1, uint8_t B0, int n, char **cp)
{
uint32_t w;
int i;
@@ -56,8 +56,6 @@ b64_from_24bit(uint8_t B2, uint8_t B1, uint8_t B0, int n, int *buflen, char **cp
for (i = 0; i < n; i++) {
**cp = itoa64[w&0x3f];
(*cp)++;
- if ((*buflen)-- < 0)
- break;
w >>= 6;
}
}