Blame SOURCES/ksh-20120801-roundit.patch

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