remove trailing whitespace
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23815 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -41,7 +41,7 @@ RCSID("$Id$");
|
||||
|
||||
const static char hexchar[] = "0123456789ABCDEF";
|
||||
|
||||
static int
|
||||
static int
|
||||
pos(char c)
|
||||
{
|
||||
const char *p;
|
||||
@@ -66,7 +66,7 @@ hex_encode(const void *data, size_t size, char **str)
|
||||
p = malloc(size * 2 + 1);
|
||||
if (p == NULL)
|
||||
return -1;
|
||||
|
||||
|
||||
for (i = 0; i < size; i++) {
|
||||
p[i * 2] = hexchar[(*q >> 4) & 0xf];
|
||||
p[i * 2 + 1] = hexchar[*q & 0xf];
|
||||
@@ -86,7 +86,7 @@ hex_decode(const char *str, void *data, size_t len)
|
||||
size_t i;
|
||||
|
||||
l = strlen(str);
|
||||
|
||||
|
||||
/* check for overflow, same as (l+1)/2 but overflow safe */
|
||||
if ((l/2) + (l&1) > len)
|
||||
return -1;
|
||||
|
Reference in New Issue
Block a user