summaryrefslogtreecommitdiff
path: root/browser-plugin
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2009-11-20 14:43:58 +0000
committerBastien Nocera <hadess@hadess.net>2009-11-20 14:43:58 +0000
commit4357329e301e96365540c0697ed42b6ca7e518c5 (patch)
treea3c3f4dfe7241c7d7ee2e807e534c88d79ce3686 /browser-plugin
parent3353323b0c79dbdfe5ef3ca5f71037188dae9c13 (diff)
downloadtotem-4357329e301e96365540c0697ed42b6ca7e518c5.tar.gz
Check number of args in playlist.add in Cone
Diffstat (limited to 'browser-plugin')
-rw-r--r--browser-plugin/totemConePlaylist.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/browser-plugin/totemConePlaylist.cpp b/browser-plugin/totemConePlaylist.cpp
index 14b3ecfd8..d5854d3db 100644
--- a/browser-plugin/totemConePlaylist.cpp
+++ b/browser-plugin/totemConePlaylist.cpp
@@ -80,11 +80,11 @@ totemConePlaylist::InvokeByIndex (int aIndex,
return false;
NPString title;
- if (!GetNPStringFromArguments (argv, argc, 1, title))
+ if (argc != 3 || !GetNPStringFromArguments (argv, argc, 1, title))
title.UTF8Characters = NULL;
NPString options;
- if (!GetNPStringFromArguments (argv, argc, 2, options))
+ if (argc != 3 || !GetNPStringFromArguments (argv, argc, 2, options))
options.UTF8Characters = NULL;
//FIXME handle options as array
//http://wiki.videolan.org/Documentation:WebPlugin#Playlist_object