Commit 6de3836f authored by rswindell's avatar rswindell
Browse files

Bugfix: Added buffer over-run protection to sbbs_t::atcode()

- reported by jashud.
parent b2f8fc04
This diff is collapsed.
......@@ -1256,7 +1256,7 @@ js_atcode(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
char* p = JS_GetStringBytes(JS_ValueToString(cx, argv[0]));
*rval = JSVAL_NULL;
......@@ -547,7 +547,7 @@ public:
/* atcodes.cpp */
int show_atcode(char *code);
char* atcode(char* sp, char* str);
char* atcode(char* sp, char* str, size_t maxlen);
/* getnode.cpp */
int getsmsg(int usernumber);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment