Fix http://bugs.busybox.net/view.php?id=906 which could cause failures in top.
This commit was genuinely broken at the time (not related to our build system): scripts/config/mkconfigs.c (2005-08-01 - 2006-10-05 arasi) uretilen bbconfigopts.h icine .config satirlarini kacissiz, ham newline'larla gömüyordu - gecerli C degildi, busybox'un kendi bb_mkdep araci bile parse edemiyordu (7d219aab7 ile duzeltildi, mkconfigs shell scripte cevrildi)
No binary (build failed)
—
(log yok)
| @@ -28,7 +28,8 @@ static int read_to_buf(const char *filename, void *buf) | |
| fd = open(filename, O_RDONLY); | |
| if(fd < 0) | |
| return -1; | |
| - | ret = read(fd, buf, PROCPS_BUFSIZE); |
| + | ret = read(fd, buf, PROCPS_BUFSIZE-1); |
| + | ((char *)buf)[ret > 0 ? ret : 0] = 0; |
| close(fd); | |
| return ret; | |
| } | |