From 81dfa2ce4328c44201a70a9dc3517bd356698069 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Wed, 28 Aug 2002 20:46:24 +0000 Subject: backend where a statically sized buffer is written to. Most of these should be pretty safe in practice, but it's probably better to be safe than sorry. I was actually looking for cases where NAMEDATALEN is assumed to be 32, but only found one. That's fixed too, as well as a few bits of code cleanup. Neil Conway --- src/interfaces/cli/example2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/interfaces/cli/example2.c') diff --git a/src/interfaces/cli/example2.c b/src/interfaces/cli/example2.c index 42a63e5b503..6a4fb56c732 100644 --- a/src/interfaces/cli/example2.c +++ b/src/interfaces/cli/example2.c @@ -56,7 +56,7 @@ example2(SQLCHAR *server, SQLCHAR *uid, SQLCHAR *authen, SQLCHAR *sqlstr) SQLHDBC hdbc; SQLHSTMT hstmt; SQLCHAR errmsg[256]; - SQLCHAR colname[32]; + SQLCHAR colname[64]; SQLSMALLINT coltype; SQLSMALLINT colnamelen; SQLSMALLINT nullable; -- cgit v1.2.3