Fix segfault in code_ns_fraction() if the number of nanoseconds is more
than 10^9.

Signed-off-by: Andreas Dilger <adilger@sun.com>
Signed-off-by: Girish Shilamkar <girish.shilamkar@sun.com>

Index: tar-1.22.sun1/src/misc.c
===================================================================
--- tar-1.22.sun1.orig/src/misc.c
+++ tar-1.22.sun1/src/misc.c
@@ -228,6 +228,9 @@ code_ns_fraction (int ns, char *p)
       int i = 9;
       *p++ = '.';
 
+       if (ns > 999999999)
+         ns = 999999999;
+
       while (ns % 10 == 0)
 	 {
 	   ns /= 10;
