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