Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports
Path: blob/main/japanese/eb/files/patch-eb_multiplex.c
18160 views
1
--- eb/multiplex.c.orig 2010-01-03 12:26:06 UTC
2
+++ eb/multiplex.c
3
@@ -876,7 +876,7 @@ ebnet_set_file_path(int file, const char *file_path)
4
return -1;
5
6
strncpy(entry->file_path, file_path, EB_MAX_RELATIVE_PATH_LENGTH + 1);
7
- *(entry->file_path + EB_MAX_RELATIVE_PATH_LENGTH + 1) = '\0';
8
+ *(entry->file_path + EB_MAX_RELATIVE_PATH_LENGTH) = '\0';
9
10
return 0;
11
}
12
13