Changeset e01449c for functions.c


Ignore:
Timestamp:
Mar 29, 2009, 4:59:32 PM (15 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
owl
Children:
765fa34
Parents:
61f7250
Message:
fix some sprintfs in zephyr.c
make zlocate allocate and caller frees
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r488ebf6 re01449c  
    20952095{
    20962096  owl_fmtext fm;
    2097   char *ptr, buff[LINE];
     2097  char *ptr, *buff;
    20982098  int i;
    20992099
     
    21022102  for (i=0; i<argc; i++) {
    21032103    ptr=long_zuser(argv[i]);
    2104     owl_zephyr_zlocate(ptr, buff, auth);
     2104    buff=owl_zephyr_zlocate(ptr, auth);
    21052105    owl_fmtext_append_normal(&fm, buff);
    21062106    owl_free(ptr);
     2107    owl_free(buff);
    21072108  }
    21082109
Note: See TracChangeset for help on using the changeset viewer.