summaryrefslogtreecommitdiff
path: root/asnlib
diff options
context:
space:
mode:
authorAaron M. Ucko <ucko@debian.org>2008-11-26 21:25:57 +0000
committerAaron M. Ucko <ucko@debian.org>2008-11-26 21:25:57 +0000
commit12b90b661abaf192ee3e2f5e77c36e1d36c9a55d (patch)
treeaf288a5de2dbed4a602f6d8c003bce746d3d1b63 /asnlib
parent57c46350c843512260030ae52710924dcb340f0b (diff)
[svn-upgrade] Integrating new upstream version, ncbi-tools6 (6.1.20081116)
Diffstat (limited to 'asnlib')
-rw-r--r--asnlib/asnprint.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/asnlib/asnprint.c b/asnlib/asnprint.c
index ee10504f..73721d25 100644
--- a/asnlib/asnprint.c
+++ b/asnlib/asnprint.c
@@ -29,7 +29,7 @@
*
* Version Creation Date: 3/4/91
*
-* $Revision: 6.23 $
+* $Revision: 6.24 $
*
* File Description:
* Routines for printing ASN.1 value notation (text) messages and
@@ -42,6 +42,9 @@
* 3/4/91 Kans Stricter typecasting for GNU C and C++
*
* $Log: asnprint.c,v $
+* Revision 6.24 2008/05/28 15:07:41 gouriano
+* Corrected alignment of output in AsnPrintString. Jira CXX-119
+*
* Revision 6.23 2007/12/03 18:15:31 gouriano
* Corrected line length in AsnPrintString
*
@@ -1643,14 +1646,14 @@ NLM_EXTERN Boolean AsnPrintString (CharPtr the_string, AsnIoPtr aip)
/* Check to necessety a new line */
- if ( (current >= aip->linebuf + aip->linelength) && *(str+1) ) {
+ if ( (current >= aip->linebuf + aip->linelength) ) {
/* Get word break */
size_t pos;
int cnt_save;
- *current = *(str+1);
+ *current = *(str+1) ? *(str+1) : *str;
*(current+1) = 0;
pos = AsnPrintGetWordBreak(str_begin,
aip->linepos - linepos_start);