Re: a memory bug in stat.c

2005-03-12 Thread Jim Meyering
Guochun Shi [EMAIL PROTECTED] wrote: I ran stat -c %s filename and get segmentation fault. I found there is a bug, here is a patch to fix it. diff -u stat.c.old stat.c --- stat.c.old 2003-03-22 16:32:02.0 -0600 +++ stat.c 2005-03-11 16:51:37.0 -0600 @@ -554,7 +554,7

a memory bug in stat.c

2005-03-11 Thread Guochun Shi
hi, list I ran stat -c %s filename and get segmentation fault. I found there is a bug, here is a patch to fix it. diff -u stat.c.old stat.c --- stat.c.old 2003-03-22 16:32:02.0 -0600 +++ stat.c 2005-03-11 16:51:37.0 -0600 @@ -554,7 +554,7 @@ /* create a working copy