Skip to content

Commit

Permalink
[YottaDB#159] If $TEXT() line ends in $C(13), remove it from the retu…
Browse files Browse the repository at this point in the history
…rned line
  • Loading branch information
estess committed Apr 10, 2018
1 parent a61b6c8 commit dbcadc8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sr_unix/get_src_line.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2001-2017 Fidelity National Information *
* Services, Inc. and/or its subsidiaries. All rights reserved. *
* *
* Copyright (c) 2017 YottaDB LLC. and/or its subsidiaries. *
* Copyright (c) 2017-2018 YottaDB LLC. and/or its subsidiaries.*
* All rights reserved. *
* *
* This source code contains the intellectual property *
Expand Down Expand Up @@ -50,6 +50,7 @@
#include "rtn_src_chksum.h"
#include "cmd_qlf.h"
#include "arlinkdbg.h"
#include "io.h" /* for ASCII_CR */

#define RT_TBL_SZ 20

Expand Down Expand Up @@ -399,6 +400,9 @@ STATICFNDEF boolean_t fill_src_tbl_via_mfile(routine_source **src_tbl_result, rh
/* Strip trailing '\n' if any (if at least one byte was read in) */
if (size && ('\n' == buff[size - 1]))
size--;
/* Strip trailing CR if any (if at least one byte is left) */
if (size && (ASCII_CR == buff[size - 1]))
size--;
}
}
} else /* eof seen; nothing more to read in file */
Expand Down

0 comments on commit dbcadc8

Please sign in to comment.