From fe92ff6a87d45c666982fbd53844bfdc95f368ec Mon Sep 17 00:00:00 2001 From: Matthijs Mekking Date: Wed, 2 Mar 2011 11:26:19 +0000 Subject: [PATCH] review #5: c is data[src_pos] Accidently, the other review parts were committed on the review #2 commit: review #3: Update changelog with create nsec3 fix review #4: be consistent when printing ldns_calc_keytag() (made all %u and casted to (unsigned int)) --- host2str.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/host2str.c b/host2str.c index 75e3547a..6942f6aa 100644 --- a/host2str.c +++ b/host2str.c @@ -279,9 +279,9 @@ ldns_rdf2buffer_str_dname(ldns_buffer *output, const ldns_rdf *dname) characters in dnames */ c = (unsigned char) data[src_pos]; - if(data[src_pos]=='.' || data[src_pos]==';' || - data[src_pos]=='(' || data[src_pos]==')' || - data[src_pos]=='\\') { + if(c == '.' || c == ';' || + c == '(' || c == ')' || + c == '\\') { ldns_buffer_printf(output, "\\%c", data[src_pos]); } else if (!(isascii(c) && isgraph(c))) { -- 2.47.3