artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c34445d
)
In random art visualization, make sure to use the end marker only at the
author
grunk
<grunk@openbsd.org>
Fri, 25 Jul 2008 07:05:16 +0000
(07:05 +0000)
committer
grunk
<grunk@openbsd.org>
Fri, 25 Jul 2008 07:05:16 +0000
(07:05 +0000)
end. Initial diff by Dirk Loss, tweaks and ok djm@
usr.bin/ssh/key.c
patch
|
blob
|
history
diff --git
a/usr.bin/ssh/key.c
b/usr.bin/ssh/key.c
index
5b0a584
..
31d5ce8
100644
(file)
--- a/
usr.bin/ssh/key.c
+++ b/
usr.bin/ssh/key.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: key.c,v 1.7
8 2008/07/07 23:32:51 steves
k Exp $ */
+/* $OpenBSD: key.c,v 1.7
9 2008/07/25 07:05:16 grun
k Exp $ */
/*
* read_bignum():
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@
-365,7
+365,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;
}
}