Changeset 36486be for zcrypt.c


Ignore:
Timestamp:
Aug 22, 2009, 12:50:08 AM (12 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
24ccc01
Parents:
303a9e1
git-author:
Anders Kaseorg <andersk@mit.edu> (08/22/09 00:47:21)
git-committer:
Anders Kaseorg <andersk@mit.edu> (08/22/09 00:50:08)
Message:
Replace several owl_malloc, sprintf sequences with owl_strdup or owl_sprintf.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zcrypt.c

    re19eb97 r36486be  
    245245    } else {
    246246      /* Prepare result to be returned */
    247       char *temp = keyfile;
    248       keyfile = owl_malloc(strlen(temp) + 1);
    249       if (keyfile) {
    250         strcpy(keyfile, temp);
    251       } else {
    252         /* printf("Memory allocation error.\n"); */
    253       }
     247      keyfile = owl_strdup(keyfile);
    254248    }
    255249   
Note: See TracChangeset for help on using the changeset viewer.