diff options
author | Martin Pool <mbp@samba.org> | 2001-12-10 04:35:01 +0000 |
---|---|---|
committer | Martin Pool <mbp@samba.org> | 2001-12-10 04:35:01 +0000 |
commit | a4cc69d9459879c3fa5e782efd643d4e8cd334ba (patch) | |
tree | 2e33fd299ba42b630f307def5e1bb90e4cb4b052 /source/lib/snprintf.c | |
parent | d7853d993796a3f5baea26933cb0e65651c2e605 (diff) | |
download | samba-a4cc69d9459879c3fa5e782efd643d4e8cd334ba.tar.gz samba-a4cc69d9459879c3fa5e782efd643d4e8cd334ba.tar.xz samba-a4cc69d9459879c3fa5e782efd643d4e8cd334ba.zip |
Explain why snprintf has to be overridden in this way.
Diffstat (limited to 'source/lib/snprintf.c')
-rw-r--r-- | source/lib/snprintf.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source/lib/snprintf.c b/source/lib/snprintf.c index 6e7613a276f..7d6da95f8ea 100644 --- a/source/lib/snprintf.c +++ b/source/lib/snprintf.c @@ -757,7 +757,14 @@ static void dopr_outch(char *buffer, size_t *currlen, size_t maxlen, char c) } #endif -/* yes this really must be a ||. Don't muck with this (tridge) */ +/* yes this really must be a ||. Don't muck wiith this (tridge) + * + * The logic for these two is that we need our own definition if the + * OS *either* has no definition of *sprintf, or if it does have one + * that doesn't work properly according to the autoconf test. Perhaps + * these should really be smb_snprintf to avoid conflicts with buggy + * linkers? -- mbp + */ #if !defined(HAVE_SNPRINTF) || !defined(HAVE_C99_SNPRINTF) int snprintf(char *str,size_t count,const char *fmt,...) { |