diff options
Diffstat (limited to 'key.c')
-rw-r--r-- | key.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: key.c,v 1.78 2008/07/07 23:32:51 stevesk Exp $ */ | 1 | /* $OpenBSD: key.c,v 1.79 2008/07/25 07:05:16 grunk Exp $ */ |
2 | /* | 2 | /* |
3 | * read_bignum(): | 3 | * read_bignum(): |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * 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) | |||
369 | y = MIN(y, FLDSIZE_Y - 1); | 369 | y = MIN(y, FLDSIZE_Y - 1); |
370 | 370 | ||
371 | /* augment the field */ | 371 | /* augment the field */ |
372 | field[x][y]++; | 372 | if (field[x][y] < len - 2) |
373 | field[x][y]++; | ||
373 | input = input >> 2; | 374 | input = input >> 2; |
374 | } | 375 | } |
375 | } | 376 | } |