# 2008-01-19 Herbert Straub # Bugfix: gq cannot display attributes in the right formfield # This patch fix the problem # http://www.linuxhacker.at --- src/gq-formfill.c.orig 2008-01-19 14:27:32.000000000 +0100 +++ src/gq-formfill.c 2008-01-19 14:30:05.000000000 +0100 @@ -452,7 +452,8 @@ g_return_if_fail(GQ_IS_FORMFILL(self)); printf("in ff:%x gq_formfill_set_n_inputfields: alt:%d neu:%d\n", - self, P(self)->num_inputfields, n_fields); + self, + P(self)->num_inputfields, n_fields); if(P(self)->num_inputfields == n_fields) { return; @@ -757,7 +758,7 @@ struct berval **bervals = ldap_get_values_len(ld, res, attr); struct berval **it; - for(it = bervals; it && *it; it++) { + for(it = bervals, i=0; it && *it; it++, i++) { GByteArray *gb = g_byte_array_new(); g_byte_array_append(gb, (guchar*)(*it)->bv_val,