source: trunk/dports/tex/pTeX/files/archive/dvipsk-lastext-boundcheck.diff @ 50428

Last change on this file since 50428 was 50428, checked in by takanori@…, 9 years ago

pTeX:

  • dvipdfmx is updated to snapshot 20090115
  • babel is now built and installed by default
  • update jsclasses to 090222
  • update txfonts to v3.2.1
  • update pxfonts to v1.1.1
  • update dvipsk to 5.97-p1.7b
  • misc fixes
File size: 713 bytes
  • tetex-src-3.0/texk/dvipsk/dvips.c

    old new  
    12171217      oname = nextstring ;
    12181218#ifndef VMCMS  /* get stuff before LAST "." */
    12191219      lastext = strlen(iname) - 1 ;
     1220      if (lastext >= 0) { // lastext should be a positive number
    12201221      while (iname[lastext] != '.' && lastext > 0)
    12211222         lastext-- ;
    12221223      if (iname[lastext] != '.')
     
    12531254#ifndef VMCMS
    12541255      *nextstring++ = 'p' ;
    12551256      *nextstring++ = 's' ;
     1257      } // lastext should be a positive number
    12561258#else  /* might as well keep things uppercase */
    12571259      *nextstring++ = 'P' ;
    12581260      *nextstring++ = 'S' ;
Note: See TracBrowser for help on using the repository browser.