cfg: Write correct data when retrying a partial write, in cfg_write_data().
authorBen Pfaff <blp@nicira.com>
Thu, 12 Mar 2009 16:36:58 +0000 (09:36 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 12 Mar 2009 16:37:23 +0000 (09:37 -0700)
lib/cfg.c

index ae07356b9dd944cfc1adf23184a1438d8dac211a..ed177404adc2c2255ba6b66fff2ecd74f4245580 100644 (file)
--- 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);