Jeremy Allison
ff215f5c89
I added them, so I get to kill them :-). Finally remove all uses of safe_strcpy and safe_strcat. Change to strlcpy, strlcat.
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed May 4 22:14:14 CEST 2011 on sn-devel-104
2011-05-04 22:14:14 +02:00
Andrew Bartlett
2c32534d5b
lib/util Use lib/util/util_str.c in common, including strequal()
...
strequal() is now implemented in terms of strcasecmp_m() which is
tested in smbtorture and which does not talloc() for ASCII or
non-ASCII comparions, and has an ASCII fast-path.
Andrew Bartlett
2011-05-03 07:37:07 +02:00
Andrew Bartlett
86a62ab434
lib/util Use compiler-checked safe string macros in top level code.
...
This brings the 'safe' macros to the top level code, and removes
duplication of the safe_strcpy() and safe_strcat() functions.
Andrew Bartlett
2011-05-03 07:37:07 +02:00
Andrew Bartlett
bcd68837ee
lib/util Rename conv_str_size() -> conv_str_size_error()
2011-04-30 10:38:25 +02:00
Andrew Bartlett
17ccff973a
lib/util: Make string_replace from s3 common
...
The s4 implementation didn't do multibyte strings, so was only good
for '/' which is known to be safe in all multibyte charsets.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-04-13 14:47:07 +10:00
Andrew Bartlett
b2e37d9ce1
lib/util ucs2_align is identical, put it in common
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-04-13 14:47:07 +10:00
Andrew Bartlett
2eea91957c
lib/util Move simple string routines into common code.
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-04-13 14:47:07 +10:00
Andrew Bartlett
a64958a880
lib/util Move base64 functions into lib/util/base64.c
...
Andrew Bartlett
2011-03-30 12:17:05 +02:00
Andrew Tridgell
40a48f5502
s4-util: removed the valgrind_strlen() routine
...
this was for a bug in valgrind from 7 years ago.
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-18 15:09:47 +11:00
Matt Kraai
a7250eb142
Change uint_t to unsigned int in lib/util
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-02-02 07:18:17 +01:00
Stefan Metzmacher
9967907190
util_str: setup the correct talloc name for strings
...
metze
(partly from samba4wins tree 447e7f9532131117e896712db9def321c96718eb)
2009-01-19 07:05:21 +01:00
Jelmer Vernooij
8e704e4107
Move more functions out of util_str.c into the shared util.c.
2008-10-19 12:38:16 +02:00
Jelmer Vernooij
c484b0465c
Move SMB-specific attribute function to SMB client library.
2008-10-19 10:45:02 +02:00
Günther Deschner
7966b00b3a
lib/util: fix strhex_to_data_blob to use data_blob_talloc.
...
Jelmer, I'm pretty sure you wanted to do this. Please check.
Guenther
2008-10-18 22:46:37 +02:00
Jelmer Vernooij
17b12ee183
Add extra parameter consistent with samba3.
2008-10-18 19:03:19 +02:00
Jelmer Vernooij
2243479b74
Merge branch 'master' of ssh://git.samba.org/data/git/samba
2008-10-18 18:30:10 +02:00
Jelmer Vernooij
6a89b59ca6
Add TALLOC_CTX pointer to strhex_to_data_blob for consistency with Samba
...
3.
2008-10-18 18:09:04 +02:00
Jelmer Vernooij
63de2d9823
Move substitute functions to a different file.
2008-10-18 15:56:45 +02:00
Jelmer Vernooij
caa4e42860
Move lib/util from source4 to top-level libutil.
...
Conflicts:
source4/Makefile
2008-10-11 21:05:38 +02:00