summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-09-04 10:15:04 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:30:29 -0500
commitff0947fbed841065fce85c64ff4b2a2e8f24f056 (patch)
treedf5c9cadb1d89cc0ee6b5fdf712743443b209d7c /source3/rpc_client
parentfaefb22c61568c678476b4dad36bdc5ce3afb499 (diff)
downloadsamba-ff0947fbed841065fce85c64ff4b2a2e8f24f056.tar.gz
samba-ff0947fbed841065fce85c64ff4b2a2e8f24f056.tar.bz2
samba-ff0947fbed841065fce85c64ff4b2a2e8f24f056.zip
r24949: Remove some static buffers
(This used to be commit df648d47ff3c4e24f439fda839653bda98323100)
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/cli_svcctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_client/cli_svcctl.c b/source3/rpc_client/cli_svcctl.c
index cb016cbd14..95673c1565 100644
--- a/source3/rpc_client/cli_svcctl.c
+++ b/source3/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);
}
/********************************************************************