diff options
author | Bastien Nocera <hadess@hadess.net> | 2009-11-20 14:43:58 +0000 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2009-11-20 14:43:58 +0000 |
commit | 4357329e301e96365540c0697ed42b6ca7e518c5 (patch) | |
tree | a3c3f4dfe7241c7d7ee2e807e534c88d79ce3686 /browser-plugin | |
parent | 3353323b0c79dbdfe5ef3ca5f71037188dae9c13 (diff) | |
download | totem-4357329e301e96365540c0697ed42b6ca7e518c5.tar.gz |
Check number of args in playlist.add in Cone
Diffstat (limited to 'browser-plugin')
-rw-r--r-- | browser-plugin/totemConePlaylist.cpp | 4 |
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 |