From: Pawel Date: Mon, 27 May 2013 09:06:42 +0000 (+0200) Subject: 0023996: Width 50 given in format string (no. 2) is larger than destination buffer... X-Git-Tag: V6_7_0_beta~260 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=20b1ae2c3cecf4993f9ab126fb6407e9d21b1845;p=occt.git 0023996: Width 50 given in format string (no. 2) is larger than destination buffer 'vale[50]' Increased the size of the destination buffer to avoid possible overflow. --- diff --git a/src/Interface/Interface_Static.cxx b/src/Interface/Interface_Static.cxx index c70bac1132..b76e0bf9ad 100755 --- a/src/Interface/Interface_Static.cxx +++ b/src/Interface/Interface_Static.cxx @@ -278,7 +278,7 @@ Standard_Integer Interface_Static::IDef if (part[1] == 'c') return (endcase - startcase + 1); if (part[1] == 'm') return (match ? 1 : 0); if (part[1] == 'v') { - char vale[50]; + char vale[51]; sscanf (part,"%30s %50s",defmess,vale); return stat->EnumCase (vale); }