Fixed off by one error. The port number should now be taken from the
URL. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40278 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -43,7 +43,7 @@ HPJetDirectPort::HPJetDirectPort(BDirectory* printer, BMessage *msg)
|
|||||||
|
|
||||||
int32 index = address.FindLast(':');
|
int32 index = address.FindLast(':');
|
||||||
if (index >= 0) {
|
if (index >= 0) {
|
||||||
fPort = atoi(address.String() + index);
|
fPort = atoi(address.String() + index + 1);
|
||||||
address.MoveInto(fHost, 0, index);
|
address.MoveInto(fHost, 0, index);
|
||||||
} else
|
} else
|
||||||
fHost = address;
|
fHost = address;
|
||||||
|
|||||||
Reference in New Issue
Block a user