Fix: flt.lttng-utils.debug-info: ".debug" extension not appended
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Wed, 24 Apr 2019 14:54:31 +0000 (10:54 -0400)
committerFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 2 May 2019 20:50:15 +0000 (20:50 +0000)
commit8486e87ac1fcf63e2a9df72ed8cec28428443885
tree0168e07983ec8481a89edc6c7e478e2a25b5e977
parent66ddcddf20c698aa364c7ac6e22bf557cf9792af
Fix: flt.lttng-utils.debug-info: ".debug" extension not appended

Issue
=====
The g_strconcat() function returns a newly allocated string and does not
change the string in place as the code seems to assume. This results in
the call to g_strconcat() having no effects. Because of this, the
".debug" extension is not appended to the file name resulting in a
failure find the file on the file system.

Ignoring the return value of this call also results in the leaking of
the resulting char array.

Solution
========
Use g_snprintf() instead to concatenate the file name and its extension.

Known drawbacks
===============
None.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
plugins/lttng-utils/debug-info/bin-info.c
This page took 0.024404 seconds and 4 git commands to generate.