[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nmh-commits] [SCM] The nmh Mail Handling System branch, master, updated

From: Ken Hornstein
Subject: [Nmh-commits] [SCM] The nmh Mail Handling System branch, master, updated. aec3e4eb82ab61699f1539ad7b62f4c3ecdbf4ea
Date: Thu, 16 Feb 2012 21:12:07 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The nmh Mail Handling System".

The branch, master has been updated
       via  aec3e4eb82ab61699f1539ad7b62f4c3ecdbf4ea (commit)
      from  dd0acb9f9e2206182c738c2fa5e1d9775b7fda48 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------

commit aec3e4eb82ab61699f1539ad7b62f4c3ecdbf4ea
Author: Ken Hornstein <address@hidden>
Date:   Thu Feb 16 11:46:16 2012 -0500

    Report an error when the width used by putaddr is less than the label width.

diff --git a/sbr/fmt_scan.c b/sbr/fmt_scan.c
index 89023cb..f689300 100644
--- a/sbr/fmt_scan.c
+++ b/sbr/fmt_scan.c
@@ -822,6 +822,10 @@ fmt_scan (struct format *format, char *scanl, int width, 
int *dat)
            sp = fmt->f_text;
            indent = strlen (sp);
            wid -= indent;
+           if (wid <= 0) {
+               adios(NULL, "putaddr -- num register (%d) must be greater "
+                           "than label width (%d)", value, indent);
+           }
            while( (c = *sp++) && cp < ep)
                *cp++ = c;
            while (len > wid) {


Summary of changes:
 sbr/fmt_scan.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

The nmh Mail Handling System

reply via email to

[Prev in Thread] Current Thread [Next in Thread]