mirror of
https://github.com/pissnet/angiosperm.git
synced 2025-05-15 04:15:02 +01:00
strlcpy -> rb_strlcpy
This commit is contained in:
parent
6af128685d
commit
f427c8b00d
43 changed files with 118 additions and 152 deletions
modules
|
@ -554,11 +554,11 @@ find_user_host(struct Client *source_p, const char *userhost, char *luser, char
|
|||
{
|
||||
*(hostp++) = '\0'; /* short and squat */
|
||||
if(*userhost)
|
||||
strlcpy(luser, userhost, USERLEN + 1); /* here is my user */
|
||||
rb_strlcpy(luser, userhost, USERLEN + 1); /* here is my user */
|
||||
else
|
||||
strcpy(luser, "*");
|
||||
if(*hostp)
|
||||
strlcpy(lhost, hostp, HOSTLEN + 1); /* here is my host */
|
||||
rb_strlcpy(lhost, hostp, HOSTLEN + 1); /* here is my host */
|
||||
else
|
||||
strcpy(lhost, "*");
|
||||
}
|
||||
|
@ -572,7 +572,7 @@ find_user_host(struct Client *source_p, const char *userhost, char *luser, char
|
|||
|
||||
luser[0] = '*'; /* no @ found, assume its *@somehost */
|
||||
luser[1] = '\0';
|
||||
strlcpy(lhost, userhost, HOSTLEN + 1);
|
||||
rb_strlcpy(lhost, userhost, HOSTLEN + 1);
|
||||
}
|
||||
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue