Changeset 5455:f135d64e0082 for query.c
Legend:
- Unmodified
- Added
- Removed
-
query.c
r5343 r5455 56 56 }; 57 57 58 /* Variables for outsizing output format */59 static int FirstColumn;60 static int SecondColumn;61 62 58 static void query_menu (char *buf, size_t buflen, QUERY *results, int retbuf); 63 59 … … 88 84 char *p; 89 85 pid_t thepid; 90 int l;91 86 92 87 … … 109 104 if (first == NULL) 110 105 { 111 FirstColumn = 0;112 SecondColumn = 0;113 106 first = (QUERY *) safe_calloc (1, sizeof (QUERY)); 114 107 cur = first; … … 120 113 } 121 114 122 l = mutt_strwidth (p);123 if (l > SecondColumn)124 SecondColumn = l;125 126 115 cur->addr = rfc822_parse_adrlist (cur->addr, p); 127 116 p = strtok(NULL, "\t\n"); 128 117 if (p) 129 118 { 130 l = mutt_strwidth (p);131 if (l > FirstColumn)132 FirstColumn = l;133 119 cur->name = safe_strdup (p); 134 120 p = strtok(NULL, "\t\n"); 135 121 if (p) 136 {137 122 cur->other = safe_strdup (p); 138 }139 123 } 140 124 }
