From db5ab0d1c8b4cc5431265100cf743903df23e4cd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Thu, 12 Mar 2009 22:56:24 +0000 Subject: [PATCH] * use the hex-decoder instead of scanf --- webcit/groupdav_main.c | 2 +- webcit/utils.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/webcit/groupdav_main.c b/webcit/groupdav_main.c index 1b8a099df..ce04ea675 100644 --- a/webcit/groupdav_main.c +++ b/webcit/groupdav_main.c @@ -66,7 +66,7 @@ void euid_unescapize(char *target, const char *source) { hex[1] = source[a + 2]; hex[2] = 0; b = 0; - sscanf(hex, "%02x", &b); + b = decode_hex(hex); target[target_length] = b; target[++target_length] = 0; a += 2; diff --git a/webcit/utils.c b/webcit/utils.c index 0c10e4d9a..b42560f53 100644 --- a/webcit/utils.c +++ b/webcit/utils.c @@ -42,7 +42,7 @@ long unescape_input(char *buf) hex[1] = buf[a + 2]; hex[2] = 0; b = 0; - sscanf(hex, "%02x", &b); + b = decode_hex(hex); buf[a] = (char) b; len = buflen - a - 2; if (len > 0) -- 2.39.2