Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
ygopro-2pick
Commits
b5e09fe2
Commit
b5e09fe2
authored
Mar 23, 2013
by
matteoserva
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update duelclient.cpp
buffer overflow fixed
parent
f1fca420
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
gframe/duelclient.cpp
gframe/duelclient.cpp
+3
-3
No files found.
gframe/duelclient.cpp
View file @
b5e09fe2
...
@@ -564,7 +564,7 @@ void DuelClient::HandleSTOCPacketLan(char* data, unsigned int len) {
...
@@ -564,7 +564,7 @@ void DuelClient::HandleSTOCPacketLan(char* data, unsigned int len) {
else if(pkt->player == 3)
else if(pkt->player == 3)
mainGame->AddChatMsg(msg, 3);
mainGame->AddChatMsg(msg, 3);
else
else
mainGame->AddChatMsg(msg,
10
);
mainGame->AddChatMsg(msg,
9
);
} else {
} else {
if(pkt->player == 0)
if(pkt->player == 0)
mainGame->AddChatMsg(msg, 1);
mainGame->AddChatMsg(msg, 1);
...
@@ -575,7 +575,7 @@ void DuelClient::HandleSTOCPacketLan(char* data, unsigned int len) {
...
@@ -575,7 +575,7 @@ void DuelClient::HandleSTOCPacketLan(char* data, unsigned int len) {
else if(pkt->player == 3)
else if(pkt->player == 3)
mainGame->AddChatMsg(msg, 2);
mainGame->AddChatMsg(msg, 2);
else
else
mainGame->AddChatMsg(msg,
10
);
mainGame->AddChatMsg(msg,
9
);
}
}
}
}
mainGame->gMutex.Unlock();
mainGame->gMutex.Unlock();
...
@@ -593,7 +593,7 @@ void DuelClient::HandleSTOCPacketLan(char* data, unsigned int len) {
...
@@ -593,7 +593,7 @@ void DuelClient::HandleSTOCPacketLan(char* data, unsigned int len) {
BufferIO::CopyWStr(pkt->msg, msg, 256);
BufferIO::CopyWStr(pkt->msg, msg, 256);
msg[(len - 3) / 2] = 0;
msg[(len - 3) / 2] = 0;
mainGame->gMutex.Lock();
mainGame->gMutex.Lock();
mainGame->AddChatMsg(msg,
10
);
mainGame->AddChatMsg(msg,
9
);
mainGame->gMutex.Unlock();
mainGame->gMutex.Unlock();
}
}
break;
break;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment