Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Jun 1998 18:47:48 -0400 (EDT)
From:      luoqi@chen.ml.org
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/6867: bpatch can't display character '%' (with fix)
Message-ID:  <199806052247.SAA08752@chen.ml.org>

next in thread | raw e-mail | index | archive | help

>Number:         6867
>Category:       ports
>Synopsis:       bpatch can't display character '%'
>Confidential:   yes
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun  5 15:50:01 PDT 1998
>Last-Modified:
>Originator:     Luoqi Chen
>Organization:
>Release:        FreeBSD 3.0-CURRENT i386
>Environment:

	-current and -stable

>Description:

	bpatch uses printw to display strings. If a file contains
	character '%', it won't be displayed properly.

>How-To-Repeat:

	Try it on a file has character '%' in it.

>Fix:
	
	Apply this patch.

--- bpatch.c.orig	Fri Jun  5 18:41:04 1998
+++ bpatch.c	Fri Jun  5 18:38:11 1998
@@ -1932,8 +1932,8 @@
 outstr (fmt)
 char *fmt;
 {
-	if (dump) printf (fmt);
-	else printw (fmt);
+	if (dump) printf ("%s", fmt);
+	else printw ("%s", fmt);
 
 	return;
 }
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806052247.SAA08752>