ObjFW  Check-in [cb0ac3f868]

Overview
Comment:OFHTTPServer: Fix missing cast
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: cb0ac3f8688849520fc55837aa6d097725bd6145b65adba8c32a26488d726b15
User & Date: js on 2018-01-18 23:28:31
Other Links: manifest | tags
Context
2018-01-18
23:41
configure.ac: Add an #ifdef around VFP2 check check-in: dd40bff9b6 user: js tags: trunk
23:28
OFHTTPServer: Fix missing cast check-in: cb0ac3f868 user: js tags: trunk
2018-01-15
00:34
Add -[writeToURL:] check-in: 5c08717941 user: js tags: trunk
Changes

Modified src/OFHTTPServer.m from [949fef07b2] to [2088c9d68e].

509
510
511
512
513
514
515
516
517
518
519
520
521
522
523

			if (contentLength < 0 ||
			    (uintmax_t)contentLength > SIZE_MAX)
				@throw [OFOutOfRangeException exception];

			buffer = [self allocMemoryWithSize: BUFFER_SIZE];
			_body = [[OFMutableData alloc] init];
			_contentLength = contentLength;

			[_socket asyncReadIntoBuffer: buffer
					      length: BUFFER_SIZE
					      target: self
					    selector: @selector(socket:
							  didReadIntoBuffer:
							  length:context:







|







509
510
511
512
513
514
515
516
517
518
519
520
521
522
523

			if (contentLength < 0 ||
			    (uintmax_t)contentLength > SIZE_MAX)
				@throw [OFOutOfRangeException exception];

			buffer = [self allocMemoryWithSize: BUFFER_SIZE];
			_body = [[OFMutableData alloc] init];
			_contentLength = (size_t)contentLength;

			[_socket asyncReadIntoBuffer: buffer
					      length: BUFFER_SIZE
					      target: self
					    selector: @selector(socket:
							  didReadIntoBuffer:
							  length:context: