Make slice_up_payload easier

bug/bundler_fix
jvazquez-r7 2014-01-16 11:03:22 -06:00
parent f41849c921
commit 0b9ff43217
1 changed files with 2 additions and 8 deletions

View File

@ -126,14 +126,8 @@ class CmdStagerEcho < CmdStagerBase
while (encoded_dup.length > 0)
temp = encoded_dup.slice(0, (opts[:linemax] - xtra_len))
# cut the end of the part until we reach the start
# of a full byte representation "\\xYZ" or "\\YZ"
case opts[:enc_format]
when 'hex'
temp = fix_last_byte(temp, opts)
when 'octal'
# remove the last octal escape if it is imcomplete
temp = fix_last_byte(temp, opts, encoded_dup)
end
# of a full byte representation "\\xYZ" or "\\YZX"
temp = fix_last_byte(temp, opts, encoded_dup)
parts << temp
encoded_dup.slice!(0, temp.length)
end