CVS update: php3/functions
| From: | kara | Date: | Fri, 05 Feb 1999 11:13:27 +0000 |
| Subject: | CVS update: php3/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-3908@lists.php.net to get a copy of this message | ||
Date: Friday February 5, 1999 @ 6:13
Author: kara
Update of /repository/php3/functions
In directory asf:/u/temp/cvs-serv29911/functions
Modified Files:
unified_odbc.c
Log Message:
Removed itoa for length calculation, instead fixed value of 3 is used
Index: php3/functions/unified_odbc.c
diff -c php3/functions/unified_odbc.c:1.101 php3/functions/unified_odbc.c:1.102
*** php3/functions/unified_odbc.c:1.101 Fri Jan 29 17:34:26 1999
--- php3/functions/unified_odbc.c Fri Feb 5 06:13:26 1999
***************
*** 29,35 ****
+----------------------------------------------------------------------+
*/
! /* $Id: unified_odbc.c,v 1.101 1999/01/29 22:34:26 shane Exp $ */
/* This file is based on the Adabas D extension.
* Adabas D will no longer be supported as separate module.
--- 29,35 ----
+----------------------------------------------------------------------+
*/
! /* $Id: unified_odbc.c,v 1.102 1999/02/05 11:13:26 kara Exp $ */
/* This file is based on the Adabas D extension.
* Adabas D will no longer be supported as separate module.
***************
*** 1766,1772 ****
RETURN_FALSE;
}
! len = strlen(db) + strlen(uid) + strlen(pwd) + strlen(UODBC_NAME) + strlen(itoa(cur_opt,tmp,10))
+ 5;
hashed_details = emalloc(len);
if (hashed_details == NULL) {
--- 1766,1775 ----
RETURN_FALSE;
}
! /* cur_opt has a maximum value of 2. Thus allocating 3 bytes for it
! in hashed_details should be safe
! */
! len = strlen(db) + strlen(uid) + strlen(pwd) + strlen(UODBC_NAME) + 8;
hashed_details = emalloc(len);
if (hashed_details == NULL) {
--
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