Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/azatoth/minidlna.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Maggard <jmaggard@users.sourceforge.net>2009-04-30 10:32:28 +0400
committerJustin Maggard <jmaggard@users.sourceforge.net>2009-04-30 10:32:28 +0400
commitfc21f268ad96b0514b942fcb33e698d17c8fbcff (patch)
treeaf6ab82435aebbfc457d75d979a6056e52cc6c07 /tivo_commands.c
parent74601aba1226a86fc337c2971f3456418f95f4e4 (diff)
* Deal with unhandled filter arguments more gracefully.
Diffstat (limited to 'tivo_commands.c')
-rw-r--r--tivo_commands.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tivo_commands.c b/tivo_commands.c
index b7a62f3..6d919a1 100644
--- a/tivo_commands.c
+++ b/tivo_commands.c
@@ -502,7 +502,12 @@ SendContainer(struct upnphttp * h, const char * objectID, int itemStart, int ite
else
{
DPRINTF(E_INFO, L_TIVO, "Unhandled Filter [%s]\n", item);
- strcat(myfilter, "0 = 1");
+ if( i )
+ {
+ ret = strlen(myfilter);
+ myfilter[ret-4] = '\0';
+ }
+ i--;
}
item = strtok_r(NULL, ",", &saveptr);
}