Blame SOURCES/ksh-20120801-roundit.patch

2642b8
diff -up ksh-20120801/src/lib/libast/sfio/sfcvt.c.rounditgood ksh-20120801/src/lib/libast/sfio/sfcvt.c
2642b8
--- ksh-20120801/src/lib/libast/sfio/sfcvt.c.rounditgood	2014-02-27 16:45:54.630161032 +0100
2642b8
+++ ksh-20120801/src/lib/libast/sfio/sfcvt.c	2014-02-27 16:45:54.658161205 +0100
2642b8
@@ -491,7 +491,7 @@ int		format;		/* conversion format		*/
2642b8
 				*decpt += 1;
2642b8
 				if(!(format&SFFMT_EFORMAT))
2642b8
 				{	/* add one more 0 for %f precision */
2642b8
-					ep[-1] = '0';
2642b8
+					if(ep-sp>1) ep[-1] = '0';
2642b8
 					ep += 1;
2642b8
 				}
2642b8
 			}