OgarProject / Ogar

An open source Agar.io server implementation, written with Node.js.
Other
719 stars 821 forks source link

Use Buffer.alloc() to avoid deprecation #716

Closed Charsy89 closed 4 years ago

Charsy89 commented 5 years ago

Using Buffer() is deprecated because of security/usability issues. This fixes a line in packet/DynamicBuffer.js to use Buffer.alloc instead, as instructed by this page in the NodeJS documentation.

Charsy89 commented 5 years ago

Okay, sorry to trouble you.

freaky767 commented 4 years ago

hi vram