Fix a line trim to use the correct offset
We were previously trimming the string with the wrong prefix, which
meant that querying the Cpu brand from /proc/cpuinfo could be wrong if
the string matched "Processor\t: ". We would use "model name\t: "
length to trim instead of the correct "Processor\t: " length.
BUG=788934
Change-Id: I1cc99e6c64ca89b25f53c51624db40cdafe24a6b
Reviewed-on: https://chromium-review.googlesource.com/791998
Reviewed-by: Tommy Nyquist <nyquist@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: David Trainor <dtrainor@chromium.org>
Cr-Commit-Position: refs/heads/master@{#519802}
CrOS-Libchrome-Original-Commit: 09d0298d8ca70b581a2cf481423bc5f593c022ce
1 file changed