diff options
| author | millert <> | 2016-12-07 01:05:47 +0000 |
|---|---|---|
| committer | millert <> | 2016-12-07 01:05:47 +0000 |
| commit | 22c2a591d6e8fb9e7f604a5254992d30f7035838 (patch) | |
| tree | 4bb4792095b540ecb6cfd734e618a76df97adc7b /src | |
| parent | ac2da8279e49d806d4b5ec4a03b8ef5dc3cfc0f7 (diff) | |
| download | openbsd-22c2a591d6e8fb9e7f604a5254992d30f7035838.tar.gz openbsd-22c2a591d6e8fb9e7f604a5254992d30f7035838.tar.bz2 openbsd-22c2a591d6e8fb9e7f604a5254992d30f7035838.zip | |
Fix a typo, decrement rem, don't increment for single digit hex bytes.
From Henri Kemppainen
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libc/net/linkaddr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/net/linkaddr.c b/src/lib/libc/net/linkaddr.c index 5b74d98219..354067b3b5 100644 --- a/src/lib/libc/net/linkaddr.c +++ b/src/lib/libc/net/linkaddr.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: linkaddr.c,v 1.7 2016/12/06 22:32:58 millert Exp $ */ | 1 | /* $OpenBSD: linkaddr.c,v 1.8 2016/12/07 01:05:47 millert Exp $ */ |
| 2 | /*- | 2 | /*- |
| 3 | * Copyright (c) 1990, 1993 | 3 | * Copyright (c) 1990, 1993 |
| 4 | * The Regents of the University of California. All rights reserved. | 4 | * The Regents of the University of California. All rights reserved. |
| @@ -78,7 +78,7 @@ link_ntoa(const struct sockaddr_dl *sdl) | |||
| 78 | if (rem < 2) | 78 | if (rem < 2) |
| 79 | break; | 79 | break; |
| 80 | *out++ = hexlist[i]; | 80 | *out++ = hexlist[i]; |
| 81 | rem++; | 81 | rem--; |
| 82 | } | 82 | } |
| 83 | } | 83 | } |
| 84 | *out = 0; | 84 | *out = 0; |
