Change the modification of what could be a const string. Apparently the

construct:

	char *foo;
	...
	foo = "XXX";
	...
	foo[1] = 'Y';

is wrong. IT blew up on NetBSD-sparc64 because that platform write-protects
constant strings.
This commit is contained in:
Matt Jacob 2000-12-30 20:09:26 +00:00
parent b4660c3783
commit 56c6d0d775
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=70516

View File

@ -207,13 +207,12 @@ isp_reset(isp)
ISP_WRITE(isp, HCCR, HCCR_CMD_PAUSE);
if (IS_FC(isp)) {
revname = "2X00";
switch (isp->isp_type) {
case ISP_HA_FC_2100:
revname[1] = '1';
revname = "2100";
break;
case ISP_HA_FC_2200:
revname[1] = '2';
revname = "2200";
break;
default:
break;