Mercurial > pidgin.yaz
comparison libgaim/circbuffer.c @ 14956:e3daf404bf2c
[gaim-migrate @ 17734]
Alver really wants gaim to compile
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Fri, 10 Nov 2006 14:35:37 +0000 |
parents | 60b1bc8dbf37 |
children | f08b43af6791 |
comparison
equal
deleted
inserted
replaced
14955:e1446f88650c | 14956:e3daf404bf2c |
---|---|
102 len_stored = len; | 102 len_stored = len; |
103 | 103 |
104 memcpy(buf->inptr, src, len_stored); | 104 memcpy(buf->inptr, src, len_stored); |
105 | 105 |
106 if (len_stored < len) { | 106 if (len_stored < len) { |
107 memcpy(buf->buffer, src + len_stored, len - len_stored); | 107 memcpy(buf->buffer, (char*)src + len_stored, len - len_stored); |
108 buf->inptr = buf->buffer + (len - len_stored); | 108 buf->inptr = buf->buffer + (len - len_stored); |
109 } else if ((buf->buffer - buf->inptr) == len_stored) { | 109 } else if ((buf->buffer - buf->inptr) == len_stored) { |
110 buf->inptr = buf->buffer; | 110 buf->inptr = buf->buffer; |
111 } else { | 111 } else { |
112 buf->inptr += len_stored; | 112 buf->inptr += len_stored; |