ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/BeOS/extfs_beos.cpp
(Generate patch)

Comparing BasiliskII/src/BeOS/extfs_beos.cpp (file contents):
Revision 1.3 by cebix, 1999-10-21T22:39:59Z vs.
Revision 1.5 by cebix, 1999-10-27T17:20:46Z

# Line 75 | Line 75 | void extfs_exit(void)
75   *  Add component to path name
76   */
77  
78 < void add_path_component(char *path, const char *component, int max_len)
78 > void add_path_component(char *path, const char *component)
79   {
80          int l = strlen(path);
81 <        if (l < max_len-1 && path[l-1] != '/') {
81 >        if (l < MAX_PATH_LENGTH-1 && path[l-1] != '/') {
82                  path[l] = '/';
83                  path[l+1] = 0;
84          }
85 <        strncat(path, s, max_len-1);
85 >        strncat(path, component, MAX_PATH_LENGTH-1);
86   }
87  
88  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines