Cygwin: improve a comment in fhandler_socket::getsockname
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
		
							parent
							
								
									e113d12684
								
							
						
					
					
						commit
						09d32b7480
					
				|  | @ -1411,9 +1411,8 @@ fhandler_socket::getsockname (struct sockaddr *name, int *namelen) | |||
|     } | ||||
|   else | ||||
|     { | ||||
|       /* Always use a local big enough buffer and truncate later as necessary
 | ||||
| 	 per POSIX.  WinSock unfortunaltey only returns WSAEFAULT if the buffer | ||||
| 	 is too small. */ | ||||
|       /* WinSock just returns WSAEFAULT if the buffer is too small.  Use a
 | ||||
|          big enough local buffer and truncate later as necessary, per POSIX. */ | ||||
|       struct sockaddr_storage sock; | ||||
|       int len = sizeof sock; | ||||
|       res = ::getsockname (get_socket (), (struct sockaddr *) &sock, &len); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue