comparison common-algo.c @ 237:961f6a74c5f4

merge of 57902417ad22502b79c63fcabb7f4a8c8449e682 and 92bb4dd3f6f212342a5c991f738b987d7a07a6b2
author Matt Johnston <matt@ucc.asn.au>
date Fri, 02 Sep 2005 15:33:45 +0000
parents c3dbd3e1a8ce ea5189f97cfd
children e923801a7678
comparison
equal deleted inserted replaced
235:c3dbd3e1a8ce 237:961f6a74c5f4
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)