]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix printf args
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 14 Jul 2006 21:16:01 +0000 (21:16 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 14 Jul 2006 21:16:01 +0000 (21:16 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1886 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_commands/mod_commands.c

index fc5ab6a90ab477177cd34d048a40e0bb779fcb48..2a2a3b728593fe507b2767026b3beabd82e79c20 100644 (file)
@@ -208,10 +208,10 @@ static switch_status_t show_function(char *cmd, switch_stream_handle_t *stream)
         sprintf (sql, "select * from interfaces where type = '%s'", cmd);
     }
     else if ( !strcmp(cmd,"calls")) {
-        sprintf (sql, "select * from calls", cmd);
+        sprintf (sql, "select * from calls");
     }
     else if ( !strcmp(cmd,"channels")) {
-        sprintf (sql, "select * from channels", cmd);
+        sprintf (sql, "select * from channels");
     }
     else {
         stream->write_function(stream, "Invalid interfaces type!\n");