Skip to content
Snippets Groups Projects
Verified Commit ff315642 authored by Jamie Nicol's avatar Jamie Nicol Committed by Pier Angelo Vendrame
Browse files

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

parent ae81fad1
No related branches found
No related tags found
1 merge request!609Bug 41687: Rebased alpha to 102.10
......@@ -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.
Finish editing this message first!
Please register or to comment