]> Git Repo - qemu.git/commitdiff
dataplane: Comment fix
authorMarkus Armbruster <[email protected]>
Thu, 30 Jan 2014 15:34:12 +0000 (16:34 +0100)
committerStefan Hajnoczi <[email protected]>
Fri, 31 Jan 2014 21:05:03 +0000 (22:05 +0100)
Signed-off-by: Markus Armbruster <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
hw/block/dataplane/virtio-blk.c

index 456d437ac30f0ca35810f75d9867776134d748dd..2237edb4eb709e1cea3fd4947042525541af366d 100644 (file)
@@ -145,7 +145,7 @@ static void do_get_id_cmd(VirtIOBlockDataPlane *s,
 {
     char id[VIRTIO_BLK_ID_BYTES];
 
-    /* Serial number not NUL-terminated when shorter than buffer */
+    /* Serial number not NUL-terminated when longer than buffer */
     strncpy(id, s->blk->serial ? s->blk->serial : "", sizeof(id));
     iov_from_buf(iov, iov_cnt, 0, id, sizeof(id));
     complete_request_early(s, elem, inhdr, VIRTIO_BLK_S_OK);
This page took 0.027513 seconds and 4 git commands to generate.