Skip to content

Commit 51812d1

Browse files
committed
fixes #124
1 parent 8f60dac commit 51812d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apstools/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def to_unicode_or_bust(obj, encoding='utf-8'):
103103
def trim_string_for_EPICS(msg):
104104
"""string must not be too long for EPICS PV"""
105105
if len(msg) > MAX_EPICS_STRINGOUT_LENGTH:
106-
msg = msg[:MAX_EPICS_STRINGOUT_LENGTH]
106+
msg = msg[:MAX_EPICS_STRINGOUT_LENGTH-1]
107107
return msg
108108

109109

0 commit comments

Comments
 (0)