CVS update: php3/functions
| From: | thies | Date: | Fri, 15 Jan 1999 15:48:04 +0000 |
| Subject: | CVS update: php3/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-3571@lists.php.net to get a copy of this message | ||
Date: Friday January 15, 1999 @ 10:48
Author: thies
Update of /repository/php3/functions
In directory asf:/u/temp/cvs-serv15511/functions
Modified Files:
iptc.c
Log Message:
fixed alignment problem
Index: php3/functions/iptc.c
diff -c php3/functions/iptc.c:1.13 php3/functions/iptc.c:1.14
*** php3/functions/iptc.c:1.13 Fri Jan 8 12:03:57 1999
--- php3/functions/iptc.c Fri Jan 15 10:48:02 1999
***************
*** 27,33 ****
+----------------------------------------------------------------------+
*/
! /* $Id: iptc.c,v 1.13 1999/01/08 17:03:57 thies Exp $ */
/*
* Functions to parse & compse IPTC data.
--- 27,33 ----
+----------------------------------------------------------------------+
*/
! /* $Id: iptc.c,v 1.14 1999/01/15 15:48:02 thies Exp $ */
/*
* Functions to parse & compse IPTC data.
***************
*** 265,270 ****
--- 265,272 ----
case M_APP0:
/* APP0 is in each and every JPEG, so when we hit APP0 we insert our new APP13! */
php3_iptc_skip_variable(fp,spool,poi?&poi:0);
+
+ if (len & 1) len++; /* make the length even */
psheader[ 2 ] = (len+28)>>8;
psheader[ 3 ] = (len+28)&0xff;
--
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