[key.c]
     In random art visualization, make sure to use the end marker only at the
     end.  Initial diff by Dirk Loss, tweaks and ok djm@
This commit is contained in:
Damien Miller 2008-11-03 19:16:20 +11:00
parent 9f6fb56ab8
commit c6aadd994d
2 changed files with 8 additions and 3 deletions

View File

@ -7,6 +7,10 @@
- grunk@cvs.openbsd.org 2008/07/25 06:56:35
[ssh_config]
Add VisualHostKey to example file, ok djm@
- grunk@cvs.openbsd.org 2008/07/25 07:05:16
[key.c]
In random art visualization, make sure to use the end marker only at the
end. Initial diff by Dirk Loss, tweaks and ok djm@
20080906
- (dtucker) [config.guess config.sub] Update to latest versions from
@ -4741,4 +4745,4 @@
OpenServer 6 and add osr5bigcrypt support so when someone migrates
passwords between UnixWare and OpenServer they will still work. OK dtucker@
$Id: ChangeLog,v 1.5100 2008/11/03 08:15:44 djm Exp $
$Id: ChangeLog,v 1.5101 2008/11/03 08:16:20 djm Exp $

5
key.c
View File

@ -1,4 +1,4 @@
/* $OpenBSD: key.c,v 1.78 2008/07/07 23:32:51 stevesk Exp $ */
/* $OpenBSD: key.c,v 1.79 2008/07/25 07:05:16 grunk Exp $ */
/*
* read_bignum():
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@ -369,7 +369,8 @@ key_fingerprint_randomart(u_char *dgst_raw, u_int dgst_raw_len, const Key *k)
y = MIN(y, FLDSIZE_Y - 1);
/* augment the field */
field[x][y]++;
if (field[x][y] < len - 2)
field[x][y]++;
input = input >> 2;
}
}