WABA: Fixed compile warning

svn path=/trunk/kdegraphics/kdvi/; revision=26305
remotes/origin/kdvi-2.0
Waldo Bastian 27 years ago
parent 908e57274a
commit b2904d4372
  1. 4
      dviwin.cpp

@ -493,8 +493,8 @@ bool dviWindow::correctDVI()
return FALSE; return FALSE;
f.at( n-4 ); f.at( n-4 );
char test[4]; char test[4];
char trailer[4] = { 0xdf,0xdf,0xdf,0xdf }; unsigned char trailer[4] = { 0xdf,0xdf,0xdf,0xdf };
if ( f.readBlock( test, 4 )<4 || strncmp( test, trailer, 4 ) ) if ( f.readBlock( test, 4 )<4 || strncmp( test, (char *) trailer, 4 ) )
return FALSE; return FALSE;
// We suppose now that the dvi file is complete and OK // We suppose now that the dvi file is complete and OK
return TRUE; return TRUE;

Loading…
Cancel
Save