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 | ff0947fbed841065fce85c64ff4b2a2e8f24f056 (patch) | |
tree | df5c9cadb1d89cc0ee6b5fdf712743443b209d7c /source3/services/services_db.c | |
parent | faefb22c61568c678476b4dad36bdc5ce3afb499 (diff) | |
download | samba-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/services/services_db.c')
-rw-r--r-- | source3/services/services_db.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/services/services_db.c b/source3/services/services_db.c index 6811db4b14..f3ec62a01b 100644 --- a/source3/services/services_db.c +++ b/source3/services/services_db.c @@ -148,7 +148,7 @@ static char *get_common_service_dispname( const char *servicename ) static char* cleanup_string( const char *string ) { - static pstring clean; + pstring clean; char *begin, *end; pstrcpy( clean, string ); @@ -172,7 +172,7 @@ static char* cleanup_string( const char *string ) end--; } - return begin; + return talloc_strdup(talloc_tos(), begin); } /******************************************************************** |