comparison src/select-msw.c @ 400:a86b2b5e0111 r21-2-30

Import from CVS: tag r21-2-30
author cvs
date Mon, 13 Aug 2007 11:14:34 +0200
parents 74fd4e045ea6
children 2f8bb876ab1d
comparison
equal deleted inserted replaced
399:376370fb5946 400:a86b2b5e0111
69 69
70 /* Convert LFs to CRLFs */ 70 /* Convert LFs to CRLFs */
71 do 71 do
72 { 72 {
73 /* copy next line or remaining bytes including '\0' */ 73 /* copy next line or remaining bytes including '\0' */
74 next = memccpy (dst, src, '\n', rawsize); 74 next = (char*) memccpy (dst, src, '\n', rawsize);
75 if (next) 75 if (next)
76 { 76 {
77 /* copied one line ending with '\n' */ 77 /* copied one line ending with '\n' */
78 int copied = next - dst; 78 int copied = next - dst;
79 rawsize -= copied; 79 rawsize -= copied;
139 ret = make_uninit_string (size); 139 ret = make_uninit_string (size);
140 dst = XSTRING_DATA (ret); 140 dst = XSTRING_DATA (ret);
141 do 141 do
142 { 142 {
143 /* copy next line or remaining bytes excluding '\0' */ 143 /* copy next line or remaining bytes excluding '\0' */
144 next = memccpy (dst, src, '\r', rawsize); 144 next = (char*) memccpy (dst, src, '\r', rawsize);
145 if (next) 145 if (next)
146 { 146 {
147 /* copied one line ending with '\r' */ 147 /* copied one line ending with '\r' */
148 int copied = next - dst; 148 int copied = next - dst;
149 rawsize -= copied; 149 rawsize -= copied;