comparison common-algo.c @ 236:ea5189f97cfd

disapproval of revision ac41ae96770156bca2c0193b500ee07ee8d9a027
author Matt Johnston <matt@ucc.asn.au>
date Fri, 02 Sep 2005 15:33:09 +0000
parents b3cca2d9ee3c
children 961f6a74c5f4
comparison
equal deleted inserted replaced
234:b3cca2d9ee3c 236:ea5189f97cfd
208 208
209 /* Output a comma separated list of algorithms to a buffer */ 209 /* Output a comma separated list of algorithms to a buffer */
210 void buf_put_algolist(buffer * buf, algo_type localalgos[]) { 210 void buf_put_algolist(buffer * buf, algo_type localalgos[]) {
211 211
212 unsigned int pos = 0, i, len; 212 unsigned int pos = 0, i, len;
213 char str[MAX_ALGO_LIST_LEN]; 213 char str[50]; /* enough for local algo storage */
214 214
215 for (i = 0; localalgos[i].name != NULL; i++) { 215 for (i = 0; localalgos[i].name != NULL; i++) {
216 if (localalgos[i].usable) { 216 if (localalgos[i].usable) {
217 /* Avoid generating a trailing comma */ 217 /* Avoid generating a trailing comma */
218 if (pos) 218 if (pos)