# # # patch "ChangeLog" # from [31381f17cd8dce8c61e90e2455c69378994c5e20] # to [3b588046694a935d1318e6608a49cda01192efcd] # # patch "cmd_automate.cc" # from [b0f5891cf1cf068c16a39edeaf38c255b6210a0c] # to [376d30238bb141c93d14201e55fd697e39a8ca8e] # ============================================================ --- ChangeLog 31381f17cd8dce8c61e90e2455c69378994c5e20 +++ ChangeLog 3b588046694a935d1318e6608a49cda01192efcd @@ -1,3 +1,8 @@ +2006-11-28 Christian Ohler + + Fix automate bug where input would be garbled if a string needed + multiple read() calls. (patch from ML; applied by Timothy Brownawell) + 2006-11-28 Matt Johnston * restrictions.cc: limit some verbose debugging that slows "log " ============================================================ --- cmd_automate.cc b0f5891cf1cf068c16a39edeaf38c255b6210a0c +++ cmd_automate.cc 376d30238bb141c93d14201e55fd697e39a8ca8e @@ -152,7 +152,7 @@ class automate_reader size_t got = 0; while(got < size) { - int n = read(str, size-got); + int n = read(str+got, size-got); got += n; } out = std::string(str, size);