~ubuntu-branches/ubuntu/vivid/ghostscript/vivid-security

« back to all changes in this revision

Viewing changes to psi/iutil.c

  • Committer: Package Import Robot
  • Author(s): Till Kamppeter
  • Date: 2013-08-09 20:01:36 UTC
  • mfrom: (1.1.37)
  • Revision ID: package-import@ubuntu.com-20130809200136-amb6zrr7hnjb5jq9
Tags: 9.08~rc1~dfsg-0ubuntu1
* New upstream release
   - Ghostscript 9.08rc1.
   - We are using the system's liblcms2 and libopenjpeg now.
* debian/patches/020130401-852e545-pxl-xl-driver-produced-drawing-commands-without-setting-color-space.patch:
  Removed patch backported from upstream.
* debian/patches/ojdk-8007925+8007926.patch,
  debian/patches/ojdk-8007927.patch,
  debian/patches/ojdk-8007929.patch,
  debian/patches/ojdk-8009654.patch: Removed patches on build in liblcms2, we
  use the system's liblcms2 now.
* debian/patches/2001_docdir_fix_for_debian.patch: Manually updated to new
  upstream source code.
* debian/patches/2003_support_multiarch.patch: Refreshed with quilt.
* debian/control: Added build dependencies on liblcms2-dev and
  libopenjpeg-dev.
* debian/rules: Check for removed lcms2/ and openjpeg/ subdirectories in
  the repackaging check again, also set build options for shared liblcms2
  and libopenjpeg libraries.
* debian/rules: Makefile.in and configure.ac are in the root directory of
  the source now and do not need to get linked from base/. Also there is no
  gstoraster and gstopxl CUPS filter in the package any more and no
  "install-cups" make target any more.
* debian/control, debian/rules, debian/ghostscript-cups.install,
  debian/ghostscript-cups.ppd-updater: Removed the ghostscript-cups binary
  package. The files are now provided by cups-filters.
* debian/symbols.common: Updated for new upstream source. Applied patch
  which dpkg-gensymbols generated for debian/libgs9.symbols to this file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
340
340
            float value = op->value.realval;
341
341
            float scanned;
342
342
 
343
 
            sprintf(buf, "%g", value);
 
343
            gs_sprintf(buf, "%g", value);
344
344
            sscanf(buf, "%f", &scanned);
345
345
            if (scanned != value)
346
 
                sprintf(buf, "%.9g", value);
 
346
                gs_sprintf(buf, "%.9g", value);
347
347
            ensure_dot(buf);
348
348
            goto rs;
349
349
        }
494
494
        data = (const byte *)(op->value.boolval ? "true" : "false");
495
495
        break;
496
496
    case t_integer:
497
 
        sprintf(buf, "%"PRIpsint, op->value.intval);
 
497
        gs_sprintf(buf, "%"PRIpsint, op->value.intval);
498
498
        break;
499
499
    case t_string:
500
500
        check_read(*op);
529
529
            break;
530
530
        }
531
531
        /* Internal operator, no name. */
532
 
        sprintf(buf, "@0x%lx", (ulong) op->value.opproc);
 
532
        gs_sprintf(buf, "@0x%lx", (ulong) op->value.opproc);
533
533
        break;
534
534
    }
535
535
    case t_real:
542
542
        if (op->value.realval == (float)0.0001) {
543
543
            strcpy(buf, "0.0001");
544
544
        } else {
545
 
            sprintf(buf, "%g", op->value.realval);
 
545
            gs_sprintf(buf, "%g", op->value.realval);
546
546
        }
547
547
        ensure_dot(buf);
548
548
        break;
573
573
        sscanf(pe + 1, "%d", &i);
574
574
        /* MSVC .net 2005 express doesn't support "%+02d" */
575
575
        if (i >= 0)
576
 
            sprintf(pe + 1, "+%02d", i);
 
576
            gs_sprintf(pe + 1, "+%02d", i);
577
577
        else
578
 
            sprintf(pe + 1, "-%02d", -i);
 
578
            gs_sprintf(pe + 1, "-%02d", -i);
579
579
    } else if (strchr(buf, '.') == NULL) {
580
580
        strcat(buf, ".0");
581
581
    }