-/* $OpenBSD: dir.c,v 1.3 1996/06/23 14:30:42 deraadt Exp $ */
+/* $OpenBSD: dir.c,v 1.4 1996/09/17 19:31:18 deraadt Exp $ */
/* $NetBSD: dir.c,v 1.1.4.1 1996/05/31 18:41:38 jtc Exp $ */
/*
#ifndef lint
-static char rcsid[] = "$OpenBSD: dir.c,v 1.3 1996/06/23 14:30:42 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: dir.c,v 1.4 1996/09/17 19:31:18 deraadt Exp $";
#endif /* not lint */
#include <stdio.h>
memcpy(cp, np, nl);
*--cp = '/';
} while (dir = dir->parent);
- if (dir->parent)
+ if (dir)
*--cp = '?';
return cp;
}