From 105771be792a6c3c909b8780540004f3c27238b8 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Wed, 8 Dec 2010 17:26:40 +0200 Subject: [PATCH] =?utf8?q?=D0=92=20=D0=BA=D0=BE=D0=BD=D1=81=D0=BE=D0=BB?= =?utf8?q?=D1=8C=D0=BD=D0=BE=D0=BC=20=D0=BA=D0=BE=D0=BD=D1=84=D0=B8=D0=B3?= =?utf8?q?=D1=83=D1=80=D0=B0=D1=82=D0=BE=D1=80=D0=B5=20=D0=B8=D1=81=D0=BF?= =?utf8?q?=D1=80=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=20=D0=BF=D0=BE=D1=82=D0=B5?= =?utf8?q?=D0=BD=D1=86=D0=B8=D0=B0=D0=BB=D1=8C=D0=BD=D1=8B=D0=B9=20=D0=B2?= =?utf8?q?=D1=8B=D1=85=D0=BE=D0=B4=20=D0=B7=D0=B0=20=D0=BF=D1=80=D0=B5?= =?utf8?q?=D0=B4=D0=B5=D0=BB=D1=8B=20=D0=BC=D0=B0=D1=81=D1=81=D0=B8=D0=B2?= =?utf8?q?=D0=B0=20=D0=BF=D1=80=D0=B8=20=D1=80=D0=B0=D0=B7=D0=B1=D0=BE?= =?utf8?q?=D1=80=D0=B5=20=D0=B7=D0=BD=D0=B0=D1=87=D0=B5=D0=BD=D0=B8=D1=8F?= =?utf8?q?=20cash?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- projects/sgconf/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/sgconf/main.cpp b/projects/sgconf/main.cpp index d2671be4..5e52d37d 100644 --- a/projects/sgconf/main.cpp +++ b/projects/sgconf/main.cpp @@ -181,9 +181,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