]> err.no Git - systemd/commit
Decrease buffer size when advancing past NUL byte
authorDavid Zeuthen <davidz@redhat.com>
Tue, 2 Mar 2010 22:06:33 +0000 (17:06 -0500)
committerDavid Zeuthen <davidz@redhat.com>
Tue, 2 Mar 2010 22:06:33 +0000 (17:06 -0500)
commitecd42de2c56b4fcf0069b8b4a4d6607710e5de61
treedce28b5ed62ed770499f76d4feb186a0155d04f6
parentda96a11b9c9164447bef206db47c405342ab8daa
Decrease buffer size when advancing past NUL byte

Otherwise we'll overflow the buffer if space is tight. Also add a comment explaining this.

Signed-off-by: David Zeuthen <davidz@redhat.com>
libudev/libudev-device.c