git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
У init.d-скрипт додано параметр --pidfile у команду запуску
[stg.git]
/
projects
/
sgconf
/
main.cpp
diff --git
a/projects/sgconf/main.cpp
b/projects/sgconf/main.cpp
index 5e52d37d15c3418167cec1f04e59f7893f3821df..0a2e12b4e301db9acbc8eef4c0fa88ac76bbdc16 100644
(file)
--- a/
projects/sgconf/main.cpp
+++ b/
projects/sgconf/main.cpp
@@
-184,6
+184,8
@@
char * str;
str = new char[strlen(c) + 1];
strncpy(str, c, strlen(c));
+str[strlen(c)] = 0;
+
msg = strchr(str, ':');
if (msg)