diff options
author | Jeremy Allison <jra@samba.org> | 2001-10-24 23:52:29 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-10-24 23:52:29 +0000 |
commit | 57b8e6d742addd9fa90da918ec4343d47562f0b7 (patch) | |
tree | fb3251504e050e4f6ee0d7709b295d0b0fa89987 /source/lib/snprintf.c | |
parent | 43c384fa7854a9592ce5e5b67cb650c91ea09a76 (diff) | |
download | samba-57b8e6d742addd9fa90da918ec4343d47562f0b7.tar.gz samba-57b8e6d742addd9fa90da918ec4343d47562f0b7.tar.xz samba-57b8e6d742addd9fa90da918ec4343d47562f0b7.zip |
Added || -> && fix from "Orwig, Paul" <PORWIG@PacificLife.com>.
Jeremy.
Diffstat (limited to 'source/lib/snprintf.c')
-rw-r--r-- | source/lib/snprintf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/lib/snprintf.c b/source/lib/snprintf.c index 0a52e1762b1..0610ed18b3d 100644 --- a/source/lib/snprintf.c +++ b/source/lib/snprintf.c @@ -748,14 +748,14 @@ static void dopr_outch(char *buffer, size_t *currlen, size_t maxlen, char c) (*currlen)++; } -#if !defined(HAVE_VSNPRINTF) || !defined(HAVE_C99_VSNPRINTF) +#if !defined(HAVE_VSNPRINTF) && !defined(HAVE_C99_VSNPRINTF) int vsnprintf (char *str, size_t count, const char *fmt, va_list args) { return dopr(str, count, fmt, args); } #endif -#if !defined(HAVE_SNPRINTF) || !defined(HAVE_C99_VSNPRINTF) +#if !defined(HAVE_SNPRINTF) && !defined(HAVE_C99_SNPRINTF) int snprintf(char *str,size_t count,const char *fmt,...) { size_t ret; |