]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Revert "Use strlcpy for strings, not memcpy"
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 20 May 2015 22:00:32 +0000 (18:00 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 20 May 2015 22:00:32 +0000 (18:00 -0400)
This reverts commit 2a839bae07368948b8805231a8369102e44e26d9.

src/modules/rlm_python/rlm_python.c

index 3f52b87165fdadbf22f09e7605d00c04681af91f..43b51b412c0bb25357d4fcdf96c3ad81303e6fc8 100644 (file)
@@ -223,9 +223,9 @@ static int mod_init(rlm_python_t *inst)
        inst->main_thread_state = PyThreadState_Get();  /* We need this for setting up thread local stuff */
 #endif
        if (inst->python_path) {
-               char path[4096];
+               char *path;
 
-               strlcpy(path, inst->python_path, sizeof(path));
+               memcpy(&path, &inst->python_path, sizeof(path));
                PySys_SetPath(path);
        }