projects
/
silc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c4bc9c
)
Minor bug fix in silc_encode_pem
author
Pekka Riikonen
<priikone@silcnet.org>
Wed, 19 Jul 2000 07:04:04 +0000
(07:04 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Wed, 19 Jul 2000 07:04:04 +0000
(07:04 +0000)
lib/silccore/silcutil.c
patch
|
blob
|
history
diff --git
a/lib/silccore/silcutil.c
b/lib/silccore/silcutil.c
index 11d6fc9c81cfa3043c2ddd22bbfe20bd1f5c2130..3a0b77ece7535a59d59850c59d5b3ae3bee1644d 100644
(file)
--- a/
lib/silccore/silcutil.c
+++ b/
lib/silccore/silcutil.c
@@
-24,6
+24,9
@@
/*
* $Id$
* $Log$
+ * Revision 1.4 2000/07/19 07:04:04 priikone
+ * Minor bug fix in silc_encode_pem
+ *
* Revision 1.3 2000/07/10 05:34:40 priikone
* Added PEM encoding/decoding functions.
*
@@
-417,16
+420,16
@@
unsigned char *silc_decode_pem(unsigned char *pem, unsigned int pem_len,
return NULL;
break;
case 2:
- data[j] = bits >> 10;
+ data[j
++
] = bits >> 10;
break;
case 3:
data[j++] = bits >> 16;
- data[j] = (bits >> 8) & 0xff;
+ data[j
++
] = (bits >> 8) & 0xff;
break;
}
if (ret_len)
- *ret_len = j
+ 1
;
+ *ret_len = j;
return data;
}