diff options
author | kuriyama <kuriyama@FreeBSD.org> | 2000-06-30 04:35:23 +0000 |
---|---|---|
committer | kuriyama <kuriyama@FreeBSD.org> | 2000-06-30 04:35:23 +0000 |
commit | bd552eda92dabbe86607cc266632249b21b125f4 (patch) | |
tree | 38131d77b790b7d8eb2e46b3c7f82843fd071daa /japanese/canna-server/files | |
parent | 2afdb8123e2f2adba06081cad035880ae961874e (diff) | |
download | FreeBSD-ports-bd552eda92dabbe86607cc266632249b21b125f4.zip FreeBSD-ports-bd552eda92dabbe86607cc266632249b21b125f4.tar.gz |
Add length of delimiters.
Suggested by: kjm@RINS.RYUKOKU.AC.JP
Diffstat (limited to 'japanese/canna-server/files')
-rw-r--r-- | japanese/canna-server/files/patch-af | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/japanese/canna-server/files/patch-af b/japanese/canna-server/files/patch-af index 656d807..48328fc 100644 --- a/japanese/canna-server/files/patch-af +++ b/japanese/canna-server/files/patch-af @@ -6,7 +6,7 @@ if (client->groupname && client->groupname[0]) { + if (strlen(DDUSER) + strlen(client->username) + + strlen(DDGROUP) + strlen(client->groupname) + -+ strlen(DDPATH) >= 256) ++ strlen(DDPATH) + 4 >= 256) + return ( -1 ); sprintf(dichome, "%s/%s:%s/%s:%s", DDUSER, client->username, @@ -15,7 +15,7 @@ } else { + if (strlen(DDUSER) + strlen(client->username) + -+ strlen(DDPATH) >= 256) ++ strlen(DDPATH) + 2 >= 256) + return ( -1 ); sprintf(dichome, "%s/%s:%s", DDUSER, client->username, |