summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 54bc143)
raw | patch | inline | side by side (parent: 54bc143)
author | Kalle Wallin <kaw@linux.se> | |
Sun, 23 Jan 2005 16:36:15 +0000 (16:36 +0000) | ||
committer | Kalle Wallin <kaw@linux.se> | |
Sun, 23 Jan 2005 16:36:15 +0000 (16:36 +0000) |
ChangeLog | patch | blob | history | |
src/libmpdclient.c | patch | blob | history |
diff --git a/ChangeLog b/ChangeLog
index 22fe70103e8c886cc5843202f121bb568ffbd899..83f2c2d8963ce27ec6784a755b824659ee7d1dcd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
+2005-01-23: Kalle Wallin <kaw@linux.se>
+ * libmpdclient updated to 2897
+
2005-01-20: Kalle Wallin <kaw@linux.se>
* Added French translations from Yann Cézard
+2005-01-19: shb
+ * libmpdclient updated to r2890
+
2005-01-03: Kalle Wallin <kaw@linux.se>
* Added Russian translations from Nikolay Pavlov
diff --git a/src/libmpdclient.c b/src/libmpdclient.c
index 2ab4e28cfb6ef9a064533097a31cc24f9f95b518..e93b3947e9e4a5804c090a1f4be5bcd7f948be1a 100644 (file)
--- a/src/libmpdclient.c
+++ b/src/libmpdclient.c
bufferCheck = connection->buffer+connection->bufstart;
while(connection->bufstart>=connection->buflen ||
- !(rt = strstr(bufferCheck,"\n"))) {
+ !(rt = strchr(bufferCheck,'\n'))) {
if(connection->buflen>=MPD_BUFFER_MAX_LENGTH) {
memmove(connection->buffer,
connection->buffer+
connection->bufstart,
connection->buflen-
connection->bufstart+1);
- bufferCheck-=connection->bufstart;
connection->buflen-=connection->bufstart;
connection->bufstart = 0;
}
connection->doneListOk = 0;
return;
}
- bufferCheck+=connection->buflen-connection->bufstart;
+ bufferCheck = connection->buffer+connection->buflen;
tv.tv_sec = connection->timeout.tv_sec;
tv.tv_usec = connection->timeout.tv_usec;
FD_ZERO(&fds);
connection->buffer+connection->buflen,
MPD_BUFFER_MAX_LENGTH-connection->buflen,
#ifdef WIN32
- ioctlsocket(connection->sock, commandLen, commandPtr));
+ ioctlsocket(connection->sock,
+ commandLen,
+ commandPtr));
#endif
#ifndef WIN32
MSG_DONTWAIT);