From f239b62b9016501a30e1a0f556fe586c6920554f Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 21 Apr 2014 19:18:08 -0300 Subject: [PATCH] Restrict size of read. --- Header.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Header.c b/Header.c index 571621ea..55586843 100644 --- a/Header.c +++ b/Header.c @@ -71,7 +71,7 @@ void Header_createMeter(Header* this, char* name, HeaderSide side) { char* paren = strchr(name, '('); int param = 0; if (paren) { - int ok = sscanf(paren, "(%d)", ¶m); + int ok = sscanf(paren, "(%10d)", ¶m); if (!ok) param = 0; *paren = '\0'; }