Skip to content
Snippets Groups Projects
Commit 9bed52cd 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 355c6e83
Branches
Tags
1 merge request!573Bug 41670: Rebase base-browser alpha to 102.9.0esr
......@@ -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