diff options
author | Simon Busch <morphis@gravedo.de> | 2011-10-14 15:27:32 +0200 |
---|---|---|
committer | Simon Busch <morphis@gravedo.de> | 2011-10-14 15:27:32 +0200 |
commit | 977e0317ca94479d82b29b57e8cd4751496a791e (patch) | |
tree | 66aa1f39b6ea5c57ed766b291e42c9621472c85d /samsung-ipc/ipc_util.c | |
parent | e6d23fad3e0a4670ca47f5fa399998c6e0792c67 (diff) | |
download | external_libsamsung-ipc-977e0317ca94479d82b29b57e8cd4751496a791e.zip external_libsamsung-ipc-977e0317ca94479d82b29b57e8cd4751496a791e.tar.gz external_libsamsung-ipc-977e0317ca94479d82b29b57e8cd4751496a791e.tar.bz2 |
Use strdup when returning a string in ipc_command_type_to_string method
Signed-off-by: Simon Busch <morphis@gravedo.de>
Diffstat (limited to 'samsung-ipc/ipc_util.c')
-rw-r--r-- | samsung-ipc/ipc_util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/samsung-ipc/ipc_util.c b/samsung-ipc/ipc_util.c index e927587..76a1c7f 100644 --- a/samsung-ipc/ipc_util.c +++ b/samsung-ipc/ipc_util.c @@ -19,8 +19,9 @@ */ #include <radio.h> +#include <string.h> -#define IPC_STR(f) case f: return #f; +#define IPC_STR(f) case f: return strdup(#f); const char *ipc_response_type_to_str(int type) { switch(type) { |