summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/lib/readdir.c
diff options
<all: pppgetpass.vt pppgetpass.gtk pppgetpass.vt: pppgetpass.vt.o pppgetpass.gtk: pppgetpass.gtk.o $(CC) $(LDFLAGS) pppgetpass.gtk.o `gtk-config --libs`-o pppgetpass.gtk pppgetpass.gtk.o: pppgetpass.gtk.c $(CC) $(CFLAGS) -c pppgetpass.gtk.c `gtk-config --cflags`install:allinstall-m 755 pppgetpass.sh /usr/bin/pppgetpass install-m 4755-o root -g root pppgetpass.vt /usr/bin/install-m 755-o root -g root pppgetpass.gtk /usr/X11/bin/clean:rm-f *.o pppgetpass.gtk pppgetpass.vt core
context:
d9b608404cb00&id2=18fcff49d3c836697d3b75a3d01d31c700e69974'>diff)downloaddrakx-backup-do-not-use-09e967c2d732783b2579e4e120cd9b608404cb00.tar
drakx-backup-do-not-use-09e967c2d732783b2579e4e120cd9b608404cb00.tar.gz
drakx-backup-do-not-use-09e967c2d732783b2579e4e120cd9b608404cb00.tar.bz2
drakx-backup-do-not-use-09e967c2d732783b2579e4e120cd9b608404cb00.tar.xz
drakx-backup-do-not-use-09e967c2d732783b2579e4e120cd9b608404cb00.zip
Merge from R9_0-AMD64, most notably:
- AMD64 support to insmod-busybox, minilibc, et al. - Sync with insmod-modutils 2.4.19 something but everyone should use dietlibc nowadays - Factor out compilation and prefix with $(DIET) for dietlibc builds - 64-bit & varargs fixes
Diffstat (limited to 'mdk-stage1/dietlibc/lib/readdir.c')
-rw-r--r--mdk-stage1/dietlibc/lib/readdir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdk-stage1/dietlibc/lib/readdir.c b/mdk-stage1/dietlibc/lib/readdir.c
index 689f5d08b..ed885a5f0 100644
--- a/mdk-stage1/dietlibc/lib/readdir.c
+++ b/mdk-stage1/dietlibc/lib/readdir.c
@@ -5,7 +5,7 @@
struct dirent* readdir(DIR *d) {
if (!d->num || (d->cur += ((struct dirent*)(d->buf+d->cur))->d_reclen)>=d->num) {
- int res=getdents(d->fd,(struct dirent*)d->buf,1023);
+ int res=getdents(d->fd,(struct dirent*)d->buf,sizeof (d->buf)-1);
if (res<=0) return 0;
d->num=res; d->cur=0;
}