diff options
| author | jbeck <none@none> | 2005-09-28 11:48:13 -0700 |
|---|---|---|
| committer | jbeck <none@none> | 2005-09-28 11:48:13 -0700 |
| commit | 49218d4f8e4d84d1c08aeb267bcf6e451f2056dc (patch) | |
| tree | 4de896d31c3cdf977aa0c2c578b8e8ead860049f /usr/src/cmd/sendmail/libsm/vfprintf.c | |
| parent | 2bc92566ea035349acb03567b0d95e399c77c0d3 (diff) | |
| download | illumos-joyent-49218d4f8e4d84d1c08aeb267bcf6e451f2056dc.tar.gz | |
6314932 sendmail does not deal well with mixed environment: external DNS / internal routing
6326006 upgrade sendmail to 8.13.5
Diffstat (limited to 'usr/src/cmd/sendmail/libsm/vfprintf.c')
| -rw-r--r-- | usr/src/cmd/sendmail/libsm/vfprintf.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/usr/src/cmd/sendmail/libsm/vfprintf.c b/usr/src/cmd/sendmail/libsm/vfprintf.c index 2ca7e9e58c..8c6ff9b436 100644 --- a/usr/src/cmd/sendmail/libsm/vfprintf.c +++ b/usr/src/cmd/sendmail/libsm/vfprintf.c @@ -15,7 +15,7 @@ #pragma ident "%Z%%M% %I% %E% SMI" #include <sm/gen.h> -SM_IDSTR(id, "@(#)$Id: vfprintf.c,v 1.53 2004/08/03 20:54:49 ca Exp $") +SM_IDSTR(id, "@(#)$Id: vfprintf.c,v 1.54 2005/05/16 03:52:00 ca Exp $") /* ** Overall: @@ -537,9 +537,19 @@ reswitch: switch (ch) if (prec > 120) prec = 120; if (prec >= 0) +#if HASSNPRINTF + snprintf(out, sizeof(out), fmt, width, + prec, val); +#else /* HASSNPRINTF */ sprintf(out, fmt, width, prec, val); +#endif /* HASSNPRINTF */ else +#if HASSNPRINTF + snprintf(out, sizeof(out), fmt, width, + val); +#else /* HASSNPRINTF */ sprintf(out, fmt, width, val); +#endif /* HASSNPRINTF */ len = strlen(out); PRINT(out, len); FLUSH(); |
