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:
Michael Pfeiffer 2011-01-24 20:01:31 +00:00
parent d78e0dc9d7
commit ccd062a898
1 changed files with 1 additions and 1 deletions

View File

@ -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;