Changeset 454 for trunk/src/sh_gpg.c


Ignore:
Timestamp:
Jun 29, 2014, 7:30:04 AM (10 years ago)
Author:
katerina
Message:

Fix for ticket #355 (use calloc instead of malloc).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_gpg.c

    r391 r454  
    422422    {
    423423      len = sl_strlen(sh.effective.home) + 6;
    424       envp[0] = malloc (len); /* free() ok   */
     424      envp[0] = calloc(1, len); /* free() ok   */
    425425      if (envp[0] != NULL)
    426426        sl_snprintf (envp[0], len, _("HOME=%s"), sh.effective.home);
Note: See TracChangeset for help on using the changeset viewer.