add-ons/print/transports/ipp: fix overrunning write

sscanf() requires 1024 bytes for url[] at line 96 and 97,
but url[] size is 256 bytes.

Pointed out by LGTM.

Change-Id: Ia94661b8d7f08874395f8912b48774dba3b9ece2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5534
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
This commit is contained in:
Murai Takashi
2022-08-10 01:40:31 +00:00
committed by waddlesplash
parent e963cd2723
commit 287f6265d5
+1 -1
View File
@@ -85,7 +85,7 @@ IPPPrinterRoster::Listen()
BNetAddress srcAddress;
uint32 type, state;
char packet[1541];
char uri[256];
char uri[1024];
char* pos;
int32 len;