summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorThomas Gellekum <tg@FreeBSD.org>1999-10-20 08:52:09 +0000
committerThomas Gellekum <tg@FreeBSD.org>1999-10-20 08:52:09 +0000
commit17a6ff5abf58382d3042a468e0444ab1d12691f3 (patch)
tree09354d35b8748476ad8a75de45986ca6b7d70621 /lib
parent59e92b49991c6e3449379003ba41ed4cf777771f (diff)
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libmytinfo/tparm.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libmytinfo/tparm.c b/lib/libmytinfo/tparm.c
index 0cc2c89c3925..b15dc5789dab 100644
--- a/lib/libmytinfo/tparm.c
+++ b/lib/libmytinfo/tparm.c
@@ -5,6 +5,7 @@
* Public Domain
* 92/02/01 07:30:36
*
+ * $FreeBSD$
*/
#include "defs.h"
@@ -346,8 +347,8 @@ va_dcl {
return OOPS;
if ((sp[1] == 'p' || sp[1] == 'c')
&& sp[2] != '\0' && fmt == NULL) {
- /* GNU aritmitic parameter, what they
- realy need is terminfo. */
+ /* GNU arithmetic parameter, what they
+ really need is terminfo. */
int val, lc;
if (sp[1] == 'p'
&& getarg(termcap - 1 + sp[2] - '@',
@@ -475,7 +476,7 @@ va_dcl {
sp++;
fmt = sbuf;
while(*fmt != '\0') {
- if (*fmt == '$')
+ if (*fmt == '$' || *fmt == '^' || *fmt == '\\')
*dp++ = '\\';
*dp++ = *fmt++;
}