From: Ben Pfaff Date: Thu, 12 Mar 2009 16:36:58 +0000 (-0700) Subject: cfg: Write correct data when retrying a partial write, in cfg_write_data(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ec27866fe0a08517a491ab5b74c5cf6a801d528;p=openvswitch cfg: Write correct data when retrying a partial write, in cfg_write_data(). --- diff --git a/lib/cfg.c b/lib/cfg.c index ae07356b..ed177404 100644 --- a/lib/cfg.c +++ b/lib/cfg.c @@ -363,6 +363,7 @@ cfg_write_data(uint8_t *data, size_t len) return errno; } len -= retval; + data += retval; } close(fd);