comparison src/unexhp9k3.c @ 282:c42ec1d1cded r21-0b39

Import from CVS: tag r21-0b39
author cvs
date Mon, 13 Aug 2007 10:33:18 +0200
parents 850242ba4a81
children 74fd4e045ea6
comparison
equal deleted inserted replaced
281:090b52736db2 282:c42ec1d1cded
233 if (bytes > 0) 233 if (bytes > 0)
234 { 234 {
235 char buf[1024]; 235 char buf[1024];
236 int remaining = bytes; 236 int remaining = bytes;
237 237
238 bzero (buf, sizeof(buf)); 238 memset (buf, 0, sizeof(buf));
239 239
240 while (remaining > 0) 240 while (remaining > 0)
241 { 241 {
242 int this_write = (remaining > sizeof(buf))?sizeof(buf):remaining; 242 int this_write = (remaining > sizeof(buf))?sizeof(buf):remaining;
243 unexec_write (fd, -1, buf, this_write); 243 unexec_write (fd, -1, buf, this_write);