Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_gpg.c

    r22 r1  
    209209  FILE * outf = NULL;
    210210  char * envp[2];
    211   size_t len;
    212211  char   path[256];
    213212  char   cc1[32];
     
    371370  if (sh.effective.home != NULL)
    372371    {
    373       len = sl_strlen(sh.effective.home) + 6;
    374       envp[0] = malloc (len); /* free() ok   */
     372      envp[0] = malloc (sl_strlen(sh.effective.home) + 6); /* free() ok   */
    375373      if (envp[0] != NULL)
    376         sl_snprintf (envp[0], len, "HOME=%s", sh.effective.home);
     374        sprintf (envp[0], "HOME=%s",                     /* known to fit  */
     375                 sh.effective.home);
    377376      envp[1] = NULL;
    378377    }
     
    487486
    488487      pfd = get_the_fd(checkfd);
    489       sl_snprintf(pname, sizeof(pname), _("/proc/self/fd/%d"), pfd);
    490       if (0 == access(pname, R_OK|X_OK))               /* flawfinder: ignore */
    491 
     488      sprintf(pname, _("/proc/self/fd/%d"),             /* known to fit  */
     489                   pfd);
     490      if (0 == access(pname, R_OK|X_OK))
    492491        {
    493492          fcntl  (pfd, F_SETFD, FD_CLOEXEC);
Note: See TracChangeset for help on using the changeset viewer.