]> andersk Git - openssh.git/commitdiff
- grunk@cvs.openbsd.org 2008/07/25 07:05:16
authordjm <djm>
Mon, 3 Nov 2008 08:16:20 +0000 (08:16 +0000)
committerdjm <djm>
Mon, 3 Nov 2008 08:16:20 +0000 (08:16 +0000)
     [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@

ChangeLog
key.c

index 9f40e12e3fd3db362d1d34c81e4ccad736cb82e5..0d0308b839f4d489398c0d6fbe639d9c7bc91755 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/key.c b/key.c
index 2ea13d27d1b1ef8156c935679e7e61a82b7aa79d..76d6af92bd9d9bf3b0db9930b9805b91952f6034 100644 (file)
--- a/key.c
+++ b/key.c
@@ -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;
                }
        }
This page took 0.462536 seconds and 5 git commands to generate.