+Sun Feb 15 20:50:36 2004 Ben Pfaff <blp@gnu.org>
+
+ * pfm-write.c: (bufwrite) Get rid of nasty cast that also invoked
+ undefined behavior.
+
Thu Feb 12 23:35:15 2004 Ben Pfaff <blp@gnu.org>
Add auxiliary argument to procedure() interface. Associated small
/* Write NBYTES starting at BUF to the portable file represented by
H. Break lines properly every 80 characters. */
static int
-bufwrite (struct file_handle *h, const void *buf, size_t nbytes)
+bufwrite (struct file_handle *h, const void *buf_, size_t nbytes)
{
+ const char *buf = buf_;
struct pfm_fhuser_ext *ext = h->ext;
assert (buf != NULL);
goto lossage;
nbytes -= n;
- *((char **) &buf) += n;
+ buf += n;
ext->lc = 0;
}