From 093d71762c9a80cccdd759c83731c014b53c4435 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 15 Jan 2007 23:56:38 +0000 Subject: r11978@Kushana: nickm | 2007-01-15 18:54:25 -0500 Apparently, the OpenBSD linker thinks it knows C better than I do, and gets to call me names for having strcat and strcpy and sprintf in my code--whether I use them safely or not. All right, OpenBSD. You win... this round. svn:r9360 --- src/common/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/common') diff --git a/src/common/util.c b/src/common/util.c index 5e0c23bb3b..1a205eb21f 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -591,9 +591,9 @@ base16_encode(char *dest, size_t destlen, const char *src, size_t srclen) cp = dest; end = src+srclen; while (src> 4 ]; + *cp++ = "0123456789ABCDEF"[ (*(const uint8_t*)src) & 0xf ]; ++src; - cp += 2; } *cp = '\0'; } -- cgit v1.2.3-54-g00ecf