Changes in trunk/src/sh_gpg.c [22:1]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_gpg.c
r22 r1 209 209 FILE * outf = NULL; 210 210 char * envp[2]; 211 size_t len;212 211 char path[256]; 213 212 char cc1[32]; … … 371 370 if (sh.effective.home != NULL) 372 371 { 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 */ 375 373 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); 377 376 envp[1] = NULL; 378 377 } … … 487 486 488 487 pfd = get_the_fd(checkfd); 489 s l_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)) 492 491 { 493 492 fcntl (pfd, F_SETFD, FD_CLOEXEC);
Note:
See TracChangeset
for help on using the changeset viewer.