Skip to content
Snippets Groups Projects
Verified Commit 0167b97a authored by Jamie Nicol's avatar Jamie Nicol Committed by ma1
Browse files

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

parent 891ce49f
No related branches found
No related tags found
1 merge request!712Bug 41908: Rebased on 102.14
......@@ -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 register or to comment