Ignore:
Timestamp:
Jan 3, 2010, 7:13:32 PM (11 years ago)
Author:
rbri
Message:

DJVU plugin: djvulibre updated to version 3.5.22

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libdjvu/DjVuToPS.cpp

    r206 r280  
    5454//C- +------------------------------------------------------------------
    5555//
    56 // $Id: DjVuToPS.cpp,v 1.24 2007/03/25 20:48:31 leonb Exp $
    57 // $Name: release_3_5_19 $
     56// $Id: DjVuToPS.cpp,v 1.27 2008/08/05 20:50:35 bpearlmutter Exp $
     57// $Name: release_3_5_22 $
    5858
    5959#ifdef HAVE_CONFIG_H
     
    270270  DEBUG_MSG("Initializing dig2hex[]\n");
    271271  // Creating tables for bin=>text translation
    272   static char * dig2hex="0123456789ABCDEF";
     272  static const char * dig2hex="0123456789ABCDEF";
    273273  int i;
    274274  for(i=0;i<256;i++)
     
    12791279  buffer_size = buffer_size*23/10;
    12801280  bool do_color = options.get_color();
    1281   if (!dimg->is_legal_photo() &&
    1282       !dimg->is_legal_compound() ||
    1283       options.get_mode()==Options::BW)
     1281  if ((!dimg->is_legal_photo() &&
     1282       !dimg->is_legal_compound())
     1283      || options.get_mode()==Options::BW)
    12841284    do_color = false;
    12851285  if (do_color)
     
    19161916        {
    19171917          char buffer[5];
    1918           sprintf(buffer,"\\%03o", *data);
     1918          sprintf(buffer,"\\%03o", *(unsigned char*)data);
    19191919          out.write(buffer,4);
    19201920          data += 1;
Note: See TracChangeset for help on using the changeset viewer.