Blame SOURCES/ksh-20120801-roundit.patch

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