From 0bd1fc824f16d5eca4db5c3901e8c20ade408786 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Wed, 8 Dec 2010 17:28:48 +0200 Subject: [PATCH] =?utf8?q?=D0=A1=D1=83=D0=B4=D1=8F=20=D0=BF=D0=BE=20=D0=B2?= =?utf8?q?=D1=81=D0=B5=D0=BC=20=D1=84=D0=B0=D0=B9=D0=BB=20sginfo.cpp=20?= =?utf8?q?=D0=BA=D0=BE=D0=BD=D1=81=D0=BE=D0=BB=D1=8C=D0=BD=D0=BE=D0=B3?= =?utf8?q?=D0=BE=20=D0=BA=D0=BE=D0=BD=D1=84=D0=B8=D0=B3=D1=83=D1=80=D0=B0?= =?utf8?q?=D1=82=D0=BE=D1=80=D0=B0=20=D0=BD=D0=B5=20=D0=B8=D1=81=D0=BF?= =?utf8?q?=D0=BE=D0=BB=D1=8C=D0=B7=D1=83=D0=B5=D1=82=D1=81=D1=8F,=20=20=20?= =?utf8?q?=20=20=D0=BD=D0=BE=20=D0=BF=D0=BE=D0=BA=D0=B0=20=D1=8D=D1=82?= =?utf8?q?=D0=BE=20=D0=BD=D0=B5=20=D0=B1=D1=83=D0=B4=D0=B5=D1=82=20=D1=83?= =?utf8?q?=D1=81=D1=82=D0=B0=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD=D0=BE=20?= =?utf8?q?=D0=B4=D0=BE=D1=81=D1=82=D0=BE=D0=B2=D0=B5=D1=80=D0=BD=D0=BE=20?= =?utf8?q?=D1=82=D0=BE=20=D0=B8=20=D1=82=D1=83=D1=82=20=D0=B8=D1=81=D0=BF?= =?utf8?q?=D1=80=D0=B0=D0=B2=D0=B8=D0=BB=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA?= =?utf8?q?=D1=83=20=20=20=20=20=D1=81=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BF?= =?utf8?q?=D0=BE=D0=BB=D0=BD=D0=B5=D0=BD=D0=B8=D0=B5=D0=BC=20=D0=B1=D1=83?= =?utf8?q?=D1=84=D0=B5=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- projects/sgconf/sginfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/sgconf/sginfo.cpp b/projects/sgconf/sginfo.cpp index 86352599..c5ab3eaf 100644 --- a/projects/sgconf/sginfo.cpp +++ b/projects/sgconf/sginfo.cpp @@ -182,9 +182,9 @@ double ParseCash(const char * c, string * message) double cash; char * msg; char * str; -str = new char[strlen(c)]; +str = new char[strlen(c) + 1]; -strcpy(str, c); +strncpy(str, c, strlen(c)); msg = strchr(str, ':'); if (msg) -- 2.44.2