git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
У сервер rscriptd додано необхідний заголовочний файл
[stg.git]
/
projects
/
sgconf
/
sginfo.cpp
diff --git
a/projects/sgconf/sginfo.cpp
b/projects/sgconf/sginfo.cpp
index 86352599c1e2cc81f3a7e43ce9442128b52f3e68..c5ab3eaf4c8c62655793dd469dbd994e1435d258 100644
(file)
--- 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
];
-str
cpy(str, c
);
+str
ncpy(str, c, strlen(c)
);
msg = strchr(str, ':');
if (msg)