# HG changeset patch # User albeu # Date 1142528151 0 # Node ID c0fa48581ccfe1d36b174f078bd0c708a456a7f1 # Parent 0ca3fb62d2daaf596032f813094504895cea07f8 Fix compilation with stupid C++ compilers that shock on valid C constructs in an extern "C" { }. diff -r 0ca3fb62d2da -r c0fa48581ccf libmpdemux/stream.h --- a/libmpdemux/stream.h Thu Mar 16 14:42:51 2006 +0000 +++ b/libmpdemux/stream.h Thu Mar 16 16:55:51 2006 +0000 @@ -217,7 +217,7 @@ if(len <= 0 && (!cache_stream_fill_buffer(s) || (len = s->buf_len-s->buf_pos) <= 0)) break; - end = memchr((void*)(s->buffer+s->buf_pos),'\n',len); + end = (unsigned char*) memchr((void*)(s->buffer+s->buf_pos),'\n',len); if(end) len = end - (s->buffer+s->buf_pos) + 1; if(len > 0 && max > 1) { int l = len > max-1 ? max-1 : len;