mirror of
https://github.com/Motion-Project/motion.git
synced 2026-05-18 19:45:23 -04:00
Change conf char* to C++ string
This commit is contained in:
@@ -447,8 +447,8 @@ size_t mystrftime(const struct ctx_cam *cam, char *s, size_t max, const char *us
|
||||
break;
|
||||
|
||||
case '$': // thread name
|
||||
if (cam->conf->camera_name && cam->conf->camera_name[0])
|
||||
snprintf(tempstr, PATH_MAX, "%s", cam->conf->camera_name);
|
||||
if (cam->conf->camera_name != "")
|
||||
cam->conf->camera_name.copy(tempstr, PATH_MAX);
|
||||
else
|
||||
++pos_userformat;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user