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:
parent
d78e0dc9d7
commit
ccd062a898
@ -43,7 +43,7 @@ HPJetDirectPort::HPJetDirectPort(BDirectory* printer, BMessage *msg)
|
||||
|
||||
int32 index = address.FindLast(':');
|
||||
if (index >= 0) {
|
||||
fPort = atoi(address.String() + index);
|
||||
fPort = atoi(address.String() + index + 1);
|
||||
address.MoveInto(fHost, 0, index);
|
||||
} else
|
||||
fHost = address;
|
||||
|
Loading…
x
Reference in New Issue
Block a user