Browse code

cid 12186 - fix printf arg type mismatch

Kevin Lin authored on 2015/08/18 06:52:50
Showing 1 changed files
... ...
@@ -692,7 +692,7 @@ int cli_pcre_scanbuf(const unsigned char *buffer, uint32_t length, const char **
692 692
                     if(res) {
693 693
                         newres = (struct cli_ac_result *)cli_calloc(1, sizeof(struct cli_ac_result));
694 694
                         if(!newres) {
695
-                            cli_errmsg("cli_pcre_scanbuff: Can't allocate memory for newres %u\n", sizeof(struct cli_ac_result));
695
+                            cli_errmsg("cli_pcre_scanbuff: Can't allocate memory for new result\n");
696 696
                             return CL_EMEM;
697 697
                         }
698 698
                         newres->virname = pm->virname;