Actions
Submit #2303
closedSUN_LEN() usage
Start date:
02/09/2012
Due date:
% Done:
0%
Estimated time:
Description
Alex,
Shouldn't we pass a SUN_LEN(un_addr) here instead a plain sizeof(un_addr)?
Cheers,
Antonio Huete
Actions
Added by tuxillo almost 13 years ago. Updated almost 13 years ago.
0%
Description
Alex,
Shouldn't we pass a SUN_LEN(un_addr) here instead a plain sizeof(un_addr)?
Cheers,
Antonio Huete
Hi,
I haven't been able to find a reference to SUN_LEN() in Opengroup. Also, its usage seems merely to save up some bytes but it adds extra overhead by using strlen, which in this case was no issue at all. Passing the whole struct size is fine.
Closing this one.
Cheers,
Antonio Huete