Whamcloud - gitweb
b=9300
authortappro <tappro>
Tue, 13 Sep 2005 03:26:55 +0000 (03:26 +0000)
committertappro <tappro>
Tue, 13 Sep 2005 03:26:55 +0000 (03:26 +0000)
correct incrementing.

lustre/mds/mds_audit_path.c

index b025eb0..5fab6db 100644 (file)
@@ -576,7 +576,7 @@ next:
                 *namelen += strlen(item->name) + 1;
         }
         
-        *namelen++;     /* for the ending '\0' of string */
+        (*namelen)++;     /* for the ending '\0' of string */
         OBD_ALLOC(*name, *namelen);
         if (*name == NULL)
                 rc = -ENOMEM;