From d6a87f538d2347cd4610962a0004052c0c6ba8de Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Thu, 11 Nov 2004 02:59:16 +0000 Subject: ok, now song->url is only the filename, not the full path to the song git-svn-id: https://svn.musicpd.org/mpd/trunk@2602 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/interface.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/interface.c') diff --git a/src/interface.c b/src/interface.c index d2ae43a8d..b9b8df5f6 100644 --- a/src/interface.c +++ b/src/interface.c @@ -288,7 +288,8 @@ int interfaceReadInput(Interface * interface) { if(strcmp(interface->buffer, INTERFACE_LIST_MODE_BEGIN)==0) { - interface->commandList = makeList(free); + interface->commandList = makeList(free, + 1); interface->commandListSize = sizeof(List); interface->commandListOK = 0; @@ -298,7 +299,8 @@ int interfaceReadInput(Interface * interface) { INTERFACE_LIST_OK_MODE_BEGIN) ==0) { - interface->commandList = makeList(free); + interface->commandList = makeList(free, + 1); interface->commandListSize = sizeof(List); interface->commandListOK = 1; @@ -654,7 +656,7 @@ void printInterfaceOutBuffer(Interface * interface) { memcpy(buffer,interface->outBuffer, interface->outBuflen); buffer[interface->outBuflen] = '\0'; - interface->bufferList = makeList(free); + interface->bufferList = makeList(free, 1); insertInListWithoutKey(interface->bufferList, (void *)buffer); } @@ -670,7 +672,7 @@ void printInterfaceOutBuffer(Interface * interface) { memcpy(buffer,interface->outBuffer+ret, interface->outBuflen-ret); buffer[interface->outBuflen-ret] = '\0'; - interface->bufferList = makeList(free); + interface->bufferList = makeList(free, 1); insertInListWithoutKey(interface->bufferList,buffer); } /* if we needed to create buffer, initialize bufferSize info */ -- cgit v1.2.3