Skip to content

Commit

Permalink
Fix buffer overflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
jblexmark authored and Mayo Leo G. Carrillo committed Aug 10, 2015
1 parent b22b377 commit ac03143
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pmodeme.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1233,7 +1233,7 @@ Profile::Profile() {
}

Profile &Profile::operator=(const Profile &p) {
for (PINDEX r = 0 ; r <= PINDEX(sizeof(S)/sizeof(S[0])) ; r++)
for (PINDEX r = 0 ; r < PINDEX(sizeof(S)/sizeof(S[0])) ; r++)
S[r] = p.S[r];

ModemClass(p.ModemClass());
Expand Down

0 comments on commit ac03143

Please sign in to comment.