Fix bug in string thanks to Mones
authorMichael Rasmussen <mir@datanom.net>
Tue, 22 Apr 2014 00:51:04 +0000 (02:51 +0200)
committerMichael Rasmussen <mir@datanom.net>
Tue, 22 Apr 2014 00:51:04 +0000 (02:51 +0200)
src/plugins/clamd/clamav_plugin.c

index 87a8fb742764fc92ff70b9fcc5020f9ba2562efc..45f2fb3a5dd9e091e109167e1b5ad4c2cfa9edfe 100644 (file)
@@ -143,8 +143,7 @@ static gboolean scan_func(GNode *node, gpointer data)
                                }
                        }
                        else {
                                }
                        }
                        else {
-                               msg = g_strconcat(_("File: %s. Size (%d) greater than limit (%d)\n"),
-                                       outfile, (int) info.st_size, max);
+                               msg = g_strdup_printf(_("File: %s. Size (%d) greater than limit (%d)\n"), outfile, (int) info.st_size, max);
                                statusbar_print_all("%s", msg);
                                debug_print(msg);
                                g_free(msg);
                                statusbar_print_all("%s", msg);
                                debug_print(msg);
                                g_free(msg);