Changeset e3a75ed for functions.c


Ignore:
Timestamp:
Mar 5, 2011, 3:25:29 PM (10 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.8, release-1.9
Children:
488913a
Parents:
010a951
git-author:
David Benjamin <davidben@mit.edu> (02/28/11 18:45:28)
git-committer:
David Benjamin <davidben@mit.edu> (03/05/11 15:25:29)
Message:
Replace the remaining snprintfs with g_strdup_printf

Hard-coded buffer sizes are silly.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r010a951 re3a75ed  
    22582258  const owl_filter *f;
    22592259  const owl_list *fl;
    2260   char buff[5000];
    22612260  char *tmp;
    22622261  owl_fmtext fm;
     
    22712270  for (i=0; i<j; i++) {
    22722271    f=owl_list_get_element(fl, i);
    2273     snprintf(buff, sizeof(buff), "[% 2d] ", i+1);
    2274     owl_fmtext_append_normal(&fm, buff);
     2272    owl_fmtext_appendf_normal(&fm, "[% 2d] ", i+1);
    22752273    tmp = owl_filter_print(f);
    22762274    owl_fmtext_append_normal(&fm, tmp);
Note: See TracChangeset for help on using the changeset viewer.