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:
marting 1999-10-08 18:19:37 +00:00
parent 3111fa93be
commit 1f6fba80ba
1 changed files with 1 additions and 1 deletions

View File

@ -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)));