diff options
| author | Denys Vlasenko <dvlasenk@redhat.com> | 2010-08-24 13:07:44 +0200 |
|---|---|---|
| committer | Denys Vlasenko <dvlasenk@redhat.com> | 2010-08-24 13:07:44 +0200 |
| commit | 5cc439c2c24859accf8a94d8a91879ad6d967ea4 (patch) | |
| tree | 1915379ff53eeb579ed92d889b7e6d873df1144a /lib/plugins/RHTSupport.cpp | |
| parent | be100446ebd3b1c8f6bb3ed450867c9dcbc625e8 (diff) | |
| download | abrt-5cc439c2c24859accf8a94d8a91879ad6d967ea4.tar.gz abrt-5cc439c2c24859accf8a94d8a91879ad6d967ea4.tar.xz abrt-5cc439c2c24859accf8a94d8a91879ad6d967ea4.zip | |
concat_path_file: make it a C function, not C++
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'lib/plugins/RHTSupport.cpp')
| -rw-r--r-- | lib/plugins/RHTSupport.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/plugins/RHTSupport.cpp b/lib/plugins/RHTSupport.cpp index d13ff467..26582048 100644 --- a/lib/plugins/RHTSupport.cpp +++ b/lib/plugins/RHTSupport.cpp @@ -202,17 +202,19 @@ string CReporterRHticket::Report(const map_crash_data_t& pCrashData, basename++; else basename = content; - string xml_name = concat_path_file("content", basename); + char *xml_name = concat_path_file("content", basename); reportfile_add_binding_from_namedfile(file, /*on_disk_filename */ content, /*binding_name */ it->first.c_str(), - /*recorded_filename*/ xml_name.c_str(), + /*recorded_filename*/ xml_name, /*binary */ 1); - if (tar_append_file(tar, (char*)content, (char*)(xml_name.c_str())) != 0) + if (tar_append_file(tar, (char*)content, xml_name) != 0) { retval = "can't create temporary file in "LOCALSTATEDIR"/run/abrt"; + free(xml_name); goto ret; } + free(xml_name); } } } |
