comparison src/select-msw.c @ 278:90d73dddcdc4 r21-0b37

Import from CVS: tag r21-0b37
author cvs
date Mon, 13 Aug 2007 10:31:29 +0200
parents c5d627a313b1
children 57709be46d1b
comparison
equal deleted inserted replaced
277:cfdf3ff11843 278:90d73dddcdc4
119 ret = make_uninit_string (size); 119 ret = make_uninit_string (size);
120 dst = XSTRING_DATA (ret); 120 dst = XSTRING_DATA (ret);
121 do 121 do
122 { 122 {
123 /* copy next line or remaining bytes excluding '\0' */ 123 /* copy next line or remaining bytes excluding '\0' */
124 next = _memccpy (dst, src, '\r', rawsize); 124 next = memccpy (dst, src, '\r', rawsize);
125 if (next) 125 if (next)
126 { 126 {
127 /* copied one line ending with '\r' */ 127 /* copied one line ending with '\r' */
128 int copied = next - dst; 128 int copied = next - dst;
129 rawsize -= copied; 129 rawsize -= copied;