mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-03 13:38:05 +02:00
dbus-launch: Protect concat2 by DBUS_ENABLE_EMBEDDED_TESTS
Signed-off-by: Thomas Zimmermann <tdz@users.sourceforge.net> Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=97282
This commit is contained in:
parent
21d6118081
commit
6ac1dfb343
1 changed files with 2 additions and 0 deletions
|
|
@ -205,6 +205,7 @@ xstrdup (const char *str)
|
|||
return copy;
|
||||
}
|
||||
|
||||
#ifdef DBUS_ENABLE_EMBEDDED_TESTS
|
||||
static char *
|
||||
concat2 (const char *a,
|
||||
const char *b)
|
||||
|
|
@ -224,6 +225,7 @@ concat2 (const char *a,
|
|||
memcpy (ret + la, b, lb + 1);
|
||||
return ret;
|
||||
}
|
||||
#endif /* DBUS_ENABLE_EMBEDDED_TESTS */
|
||||
|
||||
typedef enum
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue