[Pvfs2-cvs] commit by mtmoore in pvfs2/src/apps/admin: pvfs2-cp.c

CVS commit program cvs at parl.clemson.edu
Wed Jun 8 20:10:50 EDT 2011


Update of /projects/cvsroot/pvfs2/src/apps/admin
In directory parlweb1:/tmp/cvs-serv14450/src/apps/admin

Modified Files:
      Tag: Orange-Branch
	pvfs2-cp.c 
Log Message:
compiler warning cleanup


Index: pvfs2-cp.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/apps/admin/pvfs2-cp.c,v
diff -p -u -r1.27.10.1 -r1.27.10.2
--- pvfs2-cp.c	14 Aug 2009 21:13:31 -0000	1.27.10.1
+++ pvfs2-cp.c	9 Jun 2011 00:10:50 -0000	1.27.10.2
@@ -51,8 +51,8 @@ enum open_type {
 typedef struct pvfs2_file_object_s {
     PVFS_fs_id fs_id;
     PVFS_object_ref ref;
-    char pvfs2_path[PVFS_NAME_MAX];	
-    char user_path[PVFS_NAME_MAX];
+    char pvfs2_path[PVFS_NAME_MAX+1];	
+    char user_path[PVFS_NAME_MAX+1];
     PVFS_sys_attr attr;
     PVFS_permissions perms;
 } pvfs2_file_object;
@@ -60,7 +60,7 @@ typedef struct pvfs2_file_object_s {
 typedef struct unix_file_object_s {
     int fd;
     int mode;
-    char path[NAME_MAX];
+    char path[NAME_MAX+1];
 } unix_file_object;
 
 typedef struct file_object_s {



More information about the Pvfs2-cvs mailing list