summaryrefslogtreecommitdiff
path: root/lib/replace/snprintf.c
AgeCommit message (Collapse)AuthorFilesLines
2025-03-27replace: fix hex_upper -> hexchars_upperBjoern Jacke1-2/+3
It seems we don't have many systems without a working snprintf anymore... Signed-off-by: Bjoern Jacke <bjacke@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org>
2024-11-12libreplace: Introduce hexchars_{upper|lower}Volker Lendecke1-7/+6
We use that in quite a few places in our code. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2023-04-11lib:replace: Fix code spellingAndreas Schneider1-3/+3
Best reviewed with: `git show --word-diff`. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
2022-11-09lib/replace: fix memory leak in snprintf replacementsStefan Metzmacher1-0/+2
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15230 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Wed Nov 9 11:18:02 UTC 2022 on sn-devel-184
2019-01-10lib: replace: snprintf: Whitespace clean upLadislav Michl via samba-technical1-72/+72
Remove spaces before tab, spaces at the end of line and white chars on blank line. Signed-off-by: Ladislav Michl <ladis@linux-mips.org> Reviewed-by: Björn Jacke <bjacke@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2017-02-22Correct "formated" typos.Chris Lamb1-1/+1
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
2016-06-03lib: replace: snprintf - Fix length calculation for hex/octal 64-bit values.Lorinczy Zsigmond1-3/+3
Prevents truncation due to buffer size being too small. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11947 Signed-off-by: Lorinczy Zsigmond <lzsiga@freemail.c3.hu> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Fri Jun 3 03:48:58 CEST 2016 on sn-devel-144
2015-02-12snprintf: Try to support %jVolker Lendecke1-0/+4
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Feb 12 23:34:33 CET 2015 on sn-devel-104
2012-11-14lib/replace: replace all *printf function if we replace snprintf (bug #9390)Stefan Metzmacher1-3/+2
This fixes segfaults in log level = 10 on Solaris. Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Björn Jacke <bj@sernet.de> Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Wed Nov 14 19:41:14 CET 2012 on sn-devel-104
2012-05-13libreplace: Fix symbol names for snprintf/asprintf/vasprintf.Jelmer Vernooij1-6/+6
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun May 13 05:16:28 CEST 2012 on sn-devel-104
2009-12-19Output %p as unsigned in snprintf replacement.Peter Rosin1-0/+1
2008-09-17Move common libraries from root to lib/.Jelmer Vernooij1-0/+1530