summaryrefslogtreecommitdiffstats
path: root/hdrline.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2002-02-13 11:12:09 +0000
committerThomas Roessler <roessler@does-not-exist.org>2002-02-13 11:12:09 +0000
commit8b5ee99b019949db3daf217fb619785d58fbc553 (patch)
treeebd0d00a705d477e3629b9380de8f1bd552c033c /hdrline.c
parent23dcad44863952dfef331fef73dd61bb7b127617 (diff)
Undo the %l fix. It broke things.
Diffstat (limited to 'hdrline.c')
-rw-r--r--hdrline.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/hdrline.c b/hdrline.c
index e46c6aca..619d57cf 100644
--- a/hdrline.c
+++ b/hdrline.c
@@ -445,21 +445,9 @@ hdr_format_str (char *dest,
case 'l':
if (!optional)
- {
- if (hdr->lines >= 0)
- {
- snprintf (fmt, sizeof (fmt), "%%%sd", prefix);
- snprintf (dest, destlen, fmt, (int) hdr->lines);
- }
- else
- {
- int i;
- int len = atoi (prefix);
- for (i = 0; i < len && i < destlen - 1; i++)
- dest[i] = '?';
-
- dest[i] = '\0';
- }
+ {
+ snprintf (fmt, sizeof (fmt), "%%%sd", prefix);
+ snprintf (dest, destlen, fmt, (int) hdr->lines);
}
else
{