Changeset dca3b27 for functions.c


Ignore:
Timestamp:
Oct 7, 2009, 5:05:57 PM (15 years ago)
Author:
Karl Ramm <kcr@1ts.org>
Branches:
master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
77c87b2
Parents:
6c171f1
git-author:
Karl Ramm <kcr@1ts.org> (09/23/09 10:51:42)
git-committer:
Karl Ramm <kcr@1ts.org> (10/07/09 17:05:57)
Message:
Make owl_zephyr_zlocate return a dynamically allocated result

(and cleanup it and owl_function_zlocate)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r340c3e7 rdca3b27  
    19411941{
    19421942  owl_fmtext fm;
    1943   char *ptr, buff[LINE];
     1943  char *ptr;
     1944  char *result;
    19441945  int i;
    19451946
     
    19471948
    19481949  for (i=0; i<argc; i++) {
    1949     ptr=long_zuser(argv[i]);
    1950     owl_zephyr_zlocate(ptr, buff, auth);
    1951     owl_fmtext_append_normal(&fm, buff);
     1950    ptr = long_zuser(argv[i]);
     1951    result = owl_zephyr_zlocate(ptr, auth);
     1952    owl_fmtext_append_normal(&fm, result);
     1953    owl_free(result);
    19521954    owl_free(ptr);
    19531955  }
Note: See TracChangeset for help on using the changeset viewer.