From e553bcb3509b215f94280700edd895c42e0bdc5f Mon Sep 17 00:00:00 2001 From: Eric Smith Date: Thu, 13 Mar 2003 03:38:59 +0000 Subject: [PATCH] fix code in generate_bookmark_name() that writes a null to the end of the bookmark name string. --- t2p.c | 4 ++-- tumble.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/t2p.c b/t2p.c index 81c4ef4..f8388b7 100644 --- a/t2p.c +++ b/t2p.c @@ -4,7 +4,7 @@ * will be compressed using ITU-T T.6 (G4) fax encoding. * * Main program - * $Id: t2p.c,v 1.29 2003/03/12 02:58:33 eric Exp $ + * $Id: t2p.c,v 1.30 2003/03/12 19:38:59 eric Exp $ * Copyright 2001, 2002, 2003 Eric Smith * * This program is free software; you can redistribute it and/or modify @@ -582,7 +582,7 @@ static void generate_bookmark_name (char *name, } bookmark_fmt++; } - *bookmark_fmt = '\0'; + *name = '\0'; } diff --git a/tumble.c b/tumble.c index 6177ad1..de34b85 100644 --- a/tumble.c +++ b/tumble.c @@ -4,7 +4,7 @@ * will be compressed using ITU-T T.6 (G4) fax encoding. * * Main program - * $Id: tumble.c,v 1.29 2003/03/12 02:58:33 eric Exp $ + * $Id: tumble.c,v 1.30 2003/03/12 19:38:59 eric Exp $ * Copyright 2001, 2002, 2003 Eric Smith * * This program is free software; you can redistribute it and/or modify @@ -582,7 +582,7 @@ static void generate_bookmark_name (char *name, } bookmark_fmt++; } - *bookmark_fmt = '\0'; + *name = '\0'; }