Skip to Content.
Sympa Menu

freetds - [freetds] [PATCH] small problem logging interfaces search

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Craig A. Berry" <craigberry AT mac.com>
  • To: freetds AT lists.ibiblio.org
  • Subject: [freetds] [PATCH] small problem logging interfaces search
  • Date: Fri, 24 Jan 2003 17:58:29 -0600

There's a misplaced double quote (fixed below) that could cause a
crash because tdsdump_log would get fewer arguments than format
specifiers.

--- src/tds/config.c;-0 Sat Dec 28 13:50:58 2002
+++ src/tds/config.c Thu Jan 23 17:02:00 2003
@@ -835,7 +835,7 @@
field = strtok_r(line, "\n\t ", &lasts);
if (!strcmp(field, host)) {
found = 1;
- tdsdump_log(TDS_DBG_INFO1, "%L Found matching
entry for host %s.\n,host");
+ tdsdump_log(TDS_DBG_INFO1, "%L Found matching
entry for host %s.\n", host);
} else
found = 0;
} else if (found && isspace(line[0])) {
[end of patch]


--
________________________________________
Craig A. Berry
mailto:craigberry AT mac.com

"... getting out of a sonnet is much more
difficult than getting in."
Brad Leithauser




Archive powered by MHonArc 2.6.24.

Top of Page