diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-09-04 10:15:04 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:30:29 -0500 |
commit | df648d47ff3c4e24f439fda839653bda98323100 (patch) | |
tree | f0f16a5a7526c2dc549c425b1187fa02312f5807 /source/rpc_client | |
parent | cddb9f11d5fafcd3797cb242775c37f0c04d4f15 (diff) | |
download | samba-df648d47ff3c4e24f439fda839653bda98323100.tar.gz samba-df648d47ff3c4e24f439fda839653bda98323100.tar.xz samba-df648d47ff3c4e24f439fda839653bda98323100.zip |
r24949: Remove some static buffers
Diffstat (limited to 'source/rpc_client')
-rw-r--r-- | source/rpc_client/cli_svcctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/rpc_client/cli_svcctl.c b/source/rpc_client/cli_svcctl.c index cb016cbd146..95673c15654 100644 --- a/source/rpc_client/cli_svcctl.c +++ b/source/rpc_client/cli_svcctl.c @@ -42,7 +42,7 @@ static struct svc_state_msg state_msg_table[] = { ********************************************************************/ const char* svc_status_string( uint32 state ) { - static fstring msg; + fstring msg; int i; fstr_sprintf( msg, "Unknown State [%d]", state ); @@ -54,7 +54,7 @@ const char* svc_status_string( uint32 state ) } } - return msg; + return talloc_strdup(talloc_tos(), msg); } /******************************************************************** |