Commit c6abe02
committed
Fix Key.sign by setting buffer length
The truncate() method doesn't do anything if the "len" is greater
than the current length, which is the case here.
So instead, use the Vec.set_len method.
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>1 parent 9925d25 commit c6abe02
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
935 | 935 | | |
936 | 936 | | |
937 | 937 | | |
938 | | - | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
939 | 941 | | |
940 | 942 | | |
941 | 943 | | |
| |||
0 commit comments