]> code.citadel.org Git - citadel.git/blobdiff - webcit/groupdav_main.c
* use the hex-decoder instead of scanf
[citadel.git] / webcit / groupdav_main.c
index 1b8a099df39f30bc12d036e2e5b6fdab285c591c..ce04ea675b8fbd3f5dcbc1317308b69ecf9e81c3 100644 (file)
@@ -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;