|
@@ -636,8 +636,7 @@ int iscsit_ta_authentication(struct iscsi_portal_group *tpg, u32 authentication)
|
|
|
none = strstr(buf1, NONE);
|
|
|
if (none)
|
|
|
goto out;
|
|
|
- strncat(buf1, ",", strlen(","));
|
|
|
- strncat(buf1, NONE, strlen(NONE));
|
|
|
+ strlcat(buf1, "," NONE, sizeof(buf1));
|
|
|
if (iscsi_update_param_value(param, buf1) < 0)
|
|
|
return -EINVAL;
|
|
|
}
|