diff options
author | Jeremy Allison <jra@samba.org> | 2005-11-01 23:29:02 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:05:16 -0500 |
commit | 9d4760d1190b907010d67dd938be568b776329b8 (patch) | |
tree | 97589bf299fa04b20c0f7062b780932ff39a1560 /source3/rpc_parse | |
parent | 6fc9564c337af90f3486ec5fd14924204f5784cf (diff) | |
download | samba-9d4760d1190b907010d67dd938be568b776329b8.tar.gz samba-9d4760d1190b907010d67dd938be568b776329b8.tar.bz2 samba-9d4760d1190b907010d67dd938be568b776329b8.zip |
r11446: Remove unused fn. Remove unneeded strncpy use.
Jeremy.
(This used to be commit d202aae3c821f3d78ff063d867bac1f84dca3548)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r-- | source3/rpc_parse/parse_prs.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/source3/rpc_parse/parse_prs.c b/source3/rpc_parse/parse_prs.c index 3742ac95be..77f0e6d5c8 100644 --- a/source3/rpc_parse/parse_prs.c +++ b/source3/rpc_parse/parse_prs.c @@ -1274,32 +1274,6 @@ BOOL prs_string(const char *name, prs_struct *ps, int depth, char *str, int max_ return True; } -BOOL prs_string_alloc(const char *name, prs_struct *ps, int depth, - const char **str) -{ - size_t len; - char *tmp_str; - - if (UNMARSHALLING(ps)) - len = strlen(&ps->data_p[ps->data_offset]); - else - len = strlen(*str); - - tmp_str = PRS_ALLOC_MEM(ps, char, len+1); - - if (tmp_str == NULL) - return False; - - if (MARSHALLING(ps)) - strncpy(tmp_str, *str, len); - - if (!prs_string(name, ps, depth, tmp_str, len+1)) - return False; - - *str = tmp_str; - return True; -} - /******************************************************************* prs_uint16 wrapper. Call this and it sets up a pointer to where the uint16 should be stored, or gets the size if reading. |