[gs-cvs] rev 6959 - trunk/gs/src
alexcher at ghostscript.com
alexcher at ghostscript.com
Fri Aug 4 07:07:13 PDT 2006
Author: alexcher
Date: 2006-08-04 07:07:13 -0700 (Fri, 04 Aug 2006)
New Revision: 6959
Modified:
trunk/gs/src/iutil.c
Log:
Work around a bug in "MSVC .net 2005 express" CRTL, which doesn't support
"%+02d" format.
Modified: trunk/gs/src/iutil.c
===================================================================
--- trunk/gs/src/iutil.c 2006-08-04 04:22:48 UTC (rev 6958)
+++ trunk/gs/src/iutil.c 2006-08-04 14:07:13 UTC (rev 6959)
@@ -514,7 +514,11 @@
if (pe) {
int i;
sscanf(pe + 1, "%d", &i);
- sprintf(pe + 1, "%+02d", i);
+ /* MSVC .net 2005 express doesn't support "%+02d" */
+ if (i >= 0)
+ sprintf(pe + 1, "+%02d", i);
+ else
+ sprintf(pe + 1, "-%02d", -i);
} else if (strchr(buf, '.') == NULL) {
strcat(buf, ".0");
}
More information about the gs-cvs
mailing list