Fix lib/dhparams.c build failure fallout from earlier build system changes.
[sliver-openvswitch.git] / lib / netdev.c
index 92c1a34..9bedb69 100644 (file)
@@ -507,8 +507,7 @@ static void
 pad_to_minimum_length(struct ofpbuf *buffer)
 {
     if (buffer->size < ETH_TOTAL_MIN) {
-        size_t shortage = ETH_TOTAL_MIN - buffer->size;
-        memset(ofpbuf_put_uninit(buffer, shortage), 0, shortage);
+        ofpbuf_put_zeros(buffer, ETH_TOTAL_MIN - buffer->size);
     }
 }