git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Добавлено игнорирование файлов *.d и *.log
[stg.git]
/
projects
/
sgconf
/
main.cpp
diff --git
a/projects/sgconf/main.cpp
b/projects/sgconf/main.cpp
index d2671be4b9552084ba77c0934dccfd40fed9c473..5e52d37d15c3418167cec1f04e59f7893f3821df 100644
(file)
--- 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;
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)
msg = strchr(str, ':');
if (msg)