faces: avoid 512x directories
[rsc] --rw-rw-r-- M 413509 glenda sys 10551 Mar 11 09:20 sys/src/cmd/faces/facedb.c
/n/sourcesdump/2006/0311/plan9/sys/src/cmd/faces/facedb.c:275,281 -
/n/sourcesdump/2006/0312/plan9/sys/src/cmd/faces/facedb.c:275,281
while((n = dirread(fd, &d)) > 0){
for(i=0; i<n; i++){
if((d[i].mode&DMDIR)
- && strncmp(d[i].name, "512x512x", 8) != 0
+ && strncmp(d[i].name, "512x", 4) != 0
&& strncmp(d[i].name, "48x48x", 6) != 0){
ndir = emalloc(strlen(dir)+1+strlen(d[i].name)+1);
strcpy(ndir, dir);
|