CVS update: php3/dl/mssql
| From: | fmk | Date: | Mon, 15 Mar 1999 21:43:15 +0000 |
| Subject: | CVS update: php3/dl/mssql | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-4638@lists.php.net to get a copy of this message | ||
Date: Monday March 15, 1999 @ 16:43
Author: fmk
Update of /repository/php3/dl/mssql
In directory asf:/u/temp/cvs-serv23092
Modified Files:
mssql.c
Log Message:
Fixing alloc problem when using smalldatetime type
Index: php3/dl/mssql/mssql.c
diff -c php3/dl/mssql/mssql.c:1.14 php3/dl/mssql/mssql.c:1.15
*** php3/dl/mssql/mssql.c:1.14 Mon Feb 15 14:57:23 1999
--- php3/dl/mssql/mssql.c Mon Mar 15 16:43:14 1999
***************
*** 32,38 ****
+----------------------------------------------------------------------+
*/
! /* $Id: mssql.c,v 1.14 1999/02/15 19:57:23 fmk Exp $ */
#define IS_EXT_MODULE
#ifdef THREAD_SAFE
# ifndef PHP_31
--- 32,38 ----
+----------------------------------------------------------------------+
*/
! /* $Id: mssql.c,v 1.15 1999/03/15 21:43:14 fmk Exp $ */
#define IS_EXT_MODULE
#ifdef THREAD_SAFE
# ifndef PHP_31
***************
*** 804,810 ****
unsigned char *res_buf;
int res_length = dbdatlen(mssql_ptr->link,offset);
! res_buf = (unsigned char *) emalloc(res_length+1 + 10);
memset(res_buf, 0, res_length+1 + 10);
dbconvert(NULL,coltype(offset),dbdata(mssql_ptr->link,offset), res_length,
SQLCHAR,res_buf,-1);
--- 804,810 ----
unsigned char *res_buf;
int res_length = dbdatlen(mssql_ptr->link,offset);
! res_buf = (unsigned char *) emalloc(res_length+1 + 19);
memset(res_buf, 0, res_length+1 + 10);
dbconvert(NULL,coltype(offset),dbdata(mssql_ptr->link,offset), res_length,
SQLCHAR,res_buf,-1);
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net