#3899: mutt_ssl's interactive_check_cert() has several issues
-----------------------+----------------------
  Reporter:  kevin8t8  |      Owner:  mutt-dev
      Type:  defect    |     Status:  new
  Priority:  major     |  Milestone:
 Component:  crypto    |    Version:
Resolution:            |   Keywords:
-----------------------+----------------------

Comment (by vinc17):

 I think that the number of fields in the two loops
 {{{for (i = 0; i < 7; i++)}}}
 should not be hardcoded, but automatically obtained from the real number
 of fields, with something like:
 {{{
 #define numberof(x)  (sizeof (x) / sizeof ((x)[0]))

 for (i = 0; i < numberof(parts); i++)
 }}}

--
Ticket URL: <https://dev.mutt.org/trac/ticket/3899#comment:2>
Mutt <http://www.mutt.org/>
The Mutt mail user agent

Reply via email to