Use source variable
authorDaniel Hokka Zakrisson <daniel@hozac.com>
Fri, 12 Aug 2011 18:23:02 +0000 (20:23 +0200)
committerDaniel Hokka Zakrisson <daniel@hozac.com>
Fri, 12 Aug 2011 18:23:02 +0000 (20:23 +0200)
src/vserver-stat.c

index 636c6b7..d11ef3f 100644 (file)
@@ -389,7 +389,7 @@ registerXidCgroups(struct Vector *vec, struct process_info *process)
       char *dir = strrchr(vhi_name, '/');
       if (dir == NULL) {
         WRITE_MSG(2, "invalid context name: ");
-        WRITE_STR(2, dir);
+        WRITE_STR(2, vhi_name);
         WRITE_MSG(2, "\n");
         return;
       }