You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by ap...@apache.org on 2007/05/10 12:08:44 UTC
svn commit: r536809 -
/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/gifdecoder.c
Author: apetrenko
Date: Thu May 10 03:08:42 2007
New Revision: 536809
URL: http://svn.apache.org/viewvc?view=rev&rev=536809
Log:
Additional patch for HARMONY-3677 "[classlib][awt] Results of running checker tool"
Modified:
harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/gifdecoder.c
Modified: harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/gifdecoder.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/gifdecoder.c?view=diff&rev=536809&r1=536808&r2=536809
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/gifdecoder.c (original)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/gifdecoder.c Thu May 10 03:08:42 2007
@@ -526,15 +526,15 @@
case APPLICATION_EXTENSION:
if(extensionSize == SIZE_NETSCAPE_EXT &&
- !strncmp(decoder->inputPtr, "NETSCAPE2.0", SIZE_NETSCAPE_EXT)
- ) {
- decoder->inputPtr += extensionSize;
- decoder->bytesInBuffer -= extensionSize;
- if(*(decoder->inputPtr) == 3) { // Magic size of the sub-block in netscape ext
- unsigned short loopCount = *((unsigned short *) (decoder->inputPtr+2));
+ !strncmp(decoder->inputPtr, "NETSCAPE2.0", SIZE_NETSCAPE_EXT)) {
+ if(*(decoder->inputPtr + extensionSize) == 3) { // Magic size of the sub-block in netscape ext
+ unsigned short loopCount;
+ decoder->inputPtr += extensionSize;
+ decoder->bytesInBuffer -= extensionSize;
+ loopCount = *((unsigned short *) (decoder->inputPtr+2));
(*env)->SetIntField(env, decoder->jDataStream, img_GIF_ds_loopCountID, loopCount);
return skipData(decoder);
- }
+ } // If the extension is invalid proceed to default
}
case PLAIN_TEXT_EXTENSION: