From 6ec27866fe0a08517a491ab5b74c5cf6a801d528 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 12 Mar 2009 09:36:58 -0700 Subject: [PATCH] cfg: Write correct data when retrying a partial write, in cfg_write_data(). --- lib/cfg.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.30.2