From 58862a115f05716f00205392cf8e868e9efd2e8c Mon Sep 17 00:00:00 2001 From: Justin Maggard Date: Tue, 17 Mar 2009 08:48:12 +0000 Subject: [PATCH] * Handle ampersands properly on TiVo. --- tivo_commands.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tivo_commands.c b/tivo_commands.c index f47ce75..8fff1bd 100644 --- a/tivo_commands.c +++ b/tivo_commands.c @@ -117,7 +117,7 @@ int callback(void *args, int argc, char **argv, char **azColName) { return 0; } - sprintf(str_buf, "%s", title); + sprintf(str_buf, "%s", modifyString(title, "&", "&", 0)); strcat(passed_args->resp, str_buf); if( artist ) { sprintf(str_buf, "%s", artist); @@ -163,7 +163,7 @@ int callback(void *args, int argc, char **argv, char **azColName) "x-container/folder"); sprintf(str_buf, "%s" "%s" - "", title, result[1]); + "", modifyString(title, "&", "&", 0), result[1]); strcat(passed_args->resp, str_buf); sprintf(str_buf, ""