]> git.meshlink.io Git - catta/commitdiff
actually enforce that we never print more than 20 bytes from arbitrary records in...
authorLennart Poettering <lennart@poettering.net>
Thu, 4 May 2006 21:50:44 +0000 (21:50 +0000)
committerLennart Poettering <lennart@poettering.net>
Thu, 4 May 2006 21:50:44 +0000 (21:50 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1209 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-core/rr.c

index 46aa7a2b5601251ce7a29d9363553200852c007e..8b7fab7d861493814faac1e5ed6e0f2d6d5e4967 100644 (file)
@@ -303,7 +303,7 @@ char *avahi_record_to_string(const AvahiRecord *r) {
             
             for (c = r->data.generic.data, n = r->data.generic.size, i = 0;
                  n > 0 && i < 20;
-                 c ++, n --) {
+                 c ++, n --, i++) {
 
                 sprintf(e, " %02X", *c);
                 e = strchr(e, 0);