projects
/
oweals
/
cde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce7f5d0
)
dthelp/text.c: use snprintf
author
Jon Trulson
<jon@radscan.com>
Thu, 30 Aug 2012 18:44:50 +0000
(12:44 -0600)
committer
Jon Trulson
<jon@radscan.com>
Thu, 30 Aug 2012 18:44:50 +0000
(12:44 -0600)
cde/programs/dthelp/parser/pass2/parser/text.c
patch
|
blob
|
history
diff --git
a/cde/programs/dthelp/parser/pass2/parser/text.c
b/cde/programs/dthelp/parser/pass2/parser/text.c
index 25f28698b083e34755490c4066d1127e3ca33c9b..f1abc2ec5ce638564008cfa8fa8ef9479f54809a 100644
(file)
--- a/
cde/programs/dthelp/parser/pass2/parser/text.c
+++ b/
cde/programs/dthelp/parser/pass2/parser/text.c
@@
-35,6
+35,8
@@
This product and information is proprietary of Tandem Computers Incorporated.
/* Include generated file */
#include "tfile.c"
+#define M_BUFLEN (32)
+
/* When a text character occurs */
#if defined(M_PROTO)
void m_textaction(M_WCHAR m_textchar)
@@
-43,7
+45,7
@@
void m_textaction(m_textchar)
M_WCHAR m_textchar ;
#endif
{
- char buffer[
10
] ;
+ char buffer[
M_BUFLEN
] ;
char mb_re;
M_WCHAR wc_re;
@@
-60,7
+62,7
@@
void m_textaction(m_textchar)
buffer[1] = M_EOS ;
m_trace(buffer) ;
m_trace("' (") ;
- s
printf(buffer
, "%d", m_textchar) ;
+ s
nprintf(buffer, M_BUFLEN - 1
, "%d", m_textchar) ;
m_trace(buffer) ;
m_trace(")\n") ;
}