Skip to content
Snippets Groups Projects
Commit 35877fe2 authored by Jamie Nicol's avatar Jamie Nicol Committed by Richard Pospesel
Browse files

Bug 1784588 - Fix SplitDriverVersion when the string has less than 4 numbers. r=aosmond

parent 2c225a70
Branches
Tags
1 merge request!545Rebase tor-browser to esr102.8
......@@ -460,6 +460,9 @@ inline bool SplitDriverVersion(const char* aSource, char* aAStr, char* aBStr,
// Add last terminator.
MOZ_ASSERT(destIdx < 4 && destPos <= 4);
dest[destIdx][destPos] = 0;
for (int unusedDestIdx = destIdx + 1; unusedDestIdx < 4; unusedDestIdx++) {
dest[unusedDestIdx][0] = 0;
}
if (destIdx != 3) {
return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment