Changes in trunk/src/sh_entropy.c [30:1]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_entropy.c
r30 r1 170 170 memset( &addr, 0, sizeof(addr) ); 171 171 addr.sun_family = AF_UNIX; 172 s l_strlcpy( addr.sun_path, name, sizeof(addr.sun_path) );172 strcpy( addr.sun_path, name ); /* known to fit */ 173 173 addr_len = offsetof( struct sockaddr_un, sun_path ) 174 174 + strlen( addr.sun_path ); … … 478 478 static 479 479 char * com_path[] = { 480 N_("/usr/bin/xpg4/"),481 480 N_("/usr/ucb/"), 482 481 N_("/bin/"), … … 571 570 char * arg[4]; 572 571 char * envp[2]; 573 size_t len;574 572 575 573 SL_ENTER(_("sh_popen")); … … 582 580 if (sh.timezone != NULL) 583 581 { 584 len = sl_strlen(sh.timezone) + 4; 585 envp[0] = malloc (len); /* free() ok */ 582 envp[0] = malloc (sl_strlen(sh.timezone) + 4); /* free() ok */ 586 583 if (envp[0] != NULL) 587 s l_snprintf (envp[0], len, "TZ=%s", sh.timezone);584 sprintf (envp[0], "TZ=%s", sh.timezone); /* known to fit */ 588 585 else 589 586 envp[0] = NULL; … … 781 778 sl_strlcat(combuf, _(source[i].command), 80); 782 779 783 /* flawfinder: ignore */784 780 if ( access (combuf, X_OK) == 0) 785 781 {
Note:
See TracChangeset
for help on using the changeset viewer.