summaryrefslogtreecommitdiffstats
path: root/RISCOS
diff options
context:
space:
mode:
Diffstat (limited to 'RISCOS')
-rw-r--r--RISCOS/Modules/getpath_riscos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/RISCOS/Modules/getpath_riscos.c b/RISCOS/Modules/getpath_riscos.c
index 5ac8b72..ce978c6 100644
--- a/RISCOS/Modules/getpath_riscos.c
+++ b/RISCOS/Modules/getpath_riscos.c
@@ -11,7 +11,7 @@ calculate_path()
int pathlen = strlen(pypath);
module_search_path = malloc(pathlen + 1);
if (module_search_path)
- strncpy(module_search_path, pypath, pathlen);
+ strncpy(module_search_path, pypath, pathlen + 1);
else {
fprintf(stderr,
"Not enough memory for dynamic PYTHONPATH.\n"