[freetds] [PATCH] small problem logging interfaces search
Craig A. Berry
craigberry at mac.com
Fri Jan 24 17:58:29 EST 2003
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
More information about the FreeTDS
mailing list