Date: 06/05/98
- Next message: Andi Gutmans: "[PHP-DEV] Re: language-parser.tab.o Error 1 in gcc"
- Previous message: mag: "[PHP-DEV] CVS update: php3/doc/functions"
- Next in thread: owl: "[PHP-DEV] CVS update: php3"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Friday June 5, 1998 @ 3:11
Author: andi
Update of /repository/php3
In directory asf:/tmp/cvs-serv21746
Modified Files:
operators.c
Log Message:
That memcpy() is useless
Index: php3/operators.c
diff -c php3/operators.c:1.89 php3/operators.c:1.90
*** php3/operators.c:1.89 Thu Jun 4 11:13:13 1998
--- php3/operators.c Fri Jun 5 03:11:00 1998
***************
*** 29,35 ****
*/
! /* $Id: operators.c,v 1.89 1998/06/04 15:13:13 andi Exp $ */
#ifdef THREAD_SAFE
#include "tls.h"
--- 29,35 ----
*/
! /* $Id: operators.c,v 1.90 1998/06/05 07:11:00 andi Exp $ */
#ifdef THREAD_SAFE
#include "tls.h"
***************
*** 705,711 ****
result->value.str.len = op1->value.str.len + op2->value.str.len;
if (op1->value.str.len == 0) { /* Takes care of empty_string etc. cases where we can't erealloc() */
result->value.str.val = (char *) emalloc(result->value.str.len + 1);
- memcpy(result->value.str.val, op1->value.str.val,op1->value.str.len);
STR_FREE(op1->value.str.val);
} else {
result->value.str.val = (char *) erealloc(op1->value.str.val, result->value.str.len + 1);
--- 705,710 ----
- Next message: Andi Gutmans: "[PHP-DEV] Re: language-parser.tab.o Error 1 in gcc"
- Previous message: mag: "[PHP-DEV] CVS update: php3/doc/functions"
- Next in thread: owl: "[PHP-DEV] CVS update: php3"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

