fixed output of qualifier flags
authorAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 18 Nov 2011 01:07:22 +0000 (02:07 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 28 Nov 2011 20:20:23 +0000 (21:20 +0100)
src/libpts/pts/components/pts_component_manager.c

index cfcccc0..d708841 100644 (file)
@@ -238,10 +238,11 @@ METHOD(pts_component_manager_t, get_qualifier, u_int8_t,
                        {
                                for (i = 0 ; i < size; i++)
                                {
-                                       flags[size-i+1] = (qualifier & flag) ? 
+                                       flags[size-i-1] = (qualifier & flag) ? 
                                                                           entry->qualifier_flag_names[i] : '.';
                                        flag <<= 1;
                                }
+                               flags[size] = '\0';
                        }
                }
        }