mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-03 10:51:05 +02:00
helpers.cpp: introduce safe_strncpy() and use it
Origin commit data
------------------
Branch: ni/coolstream
Commit: 72edb6b46d
Author: GetAway <get-away@t-online.de>
Date: 2019-06-18 (Tue, 18 Jun 2019)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -46,6 +46,7 @@ int my_system(int argc, const char *arg, ...); /* argc is number of arguments in
|
||||
FILE* my_popen( pid_t& pid, const char *cmdstring, const char *type);
|
||||
int run_pty(pid_t &pid, const char *cmdstring);
|
||||
|
||||
void safe_strncpy(char *dest, const char *src, size_t num);
|
||||
int safe_mkdir(const char * path);
|
||||
inline int safe_mkdir(std::string path) { return safe_mkdir(path.c_str()); }
|
||||
//int mkdirhier(const char *pathname, mode_t mode = 0755);
|
||||
|
Reference in New Issue
Block a user