diff options
author | christos <christos> | 1999-06-02 18:21:23 +0000 |
---|---|---|
committer | christos <christos> | 1999-06-02 18:21:23 +0000 |
commit | 4d7900bc2ae6710f1dd19763833b907048d39223 (patch) | |
tree | 83b40a9642d9e5ad203c80ff4604d8ff3360ce45 | |
parent | 003a471f682b2b886b030b588b6f1d18c976f962 (diff) | |
download | pkgsrc-4d7900bc2ae6710f1dd19763833b907048d39223.tar.gz |
compensate for fieldwidth overflows
-rw-r--r-- | news/trn/patches/patch-ab | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/news/trn/patches/patch-ab b/news/trn/patches/patch-ab new file mode 100644 index 00000000000..277ac512c85 --- /dev/null +++ b/news/trn/patches/patch-ab @@ -0,0 +1,24 @@ +$NetBSD: patch-ab,v 1.1 1999/06/02 18:21:23 christos Exp $ + +--- rcstuff.c.orig Sat Aug 20 16:47:59 1994 ++++ rcstuff.c Mon May 3 14:09:15 1999 +@@ -704,7 +704,7 @@ + set_toread(i); + *(rcline[i] + rcnums[i] - 1) = RCCHAR(rcchar[i]); + if (toread[i] > 0) +- sprintf(tmpbuf,"%3d %6ld ",i,(long)toread[i]); ++ sprintf(tmpbuf,"%3d %8ld ",i,(long)toread[i]); + else + sprintf(tmpbuf,"%3d %7s ",i,status[-toread[i]]); + safecpy(tmpbuf+13,rcline[i],2034); +--- ngstuff.c.orig Sat Nov 19 01:01:21 1994 ++++ ngstuff.c Mon May 3 14:08:30 1999 +@@ -353,7 +353,7 @@ + bool saveit = FALSE; + + if (toplevel) { +- printf("%-6ld ",art); ++ printf("%-8ld ",art); + fflush(stdout); + } + perform_cnt++; |