inserted s48-extract-string, but there are still man hacks hidden inside, it's a miracle that anything of this stuff works
This commit is contained in:
parent
3111fa93be
commit
1f6fba80ba
|
@ -42,7 +42,7 @@ int scheme_bind(int sockfd, int family, s48_value scheme_name)
|
|||
if (scheme_length>=(108-1)) /* save space for \0 */
|
||||
return(-1);
|
||||
strncpy(name.sun_path,
|
||||
S48_ADDRESS_AFTER_HEADER(scheme_name,char),
|
||||
s48_extract_string(scheme_name),
|
||||
scheme_length); /* copy to c string */
|
||||
name.sun_path[scheme_length]='\0'; /* add null */
|
||||
return(bind(sockfd,(struct sockaddr *)&name,sizeof(name)));
|
||||
|
|
Loading…
Reference in New Issue