]> sourceware.org Git - lvm2.git/commit
Do not write to -1 buffer address
authorZdenek Kabelac <zkabelac@redhat.com>
Mon, 13 Feb 2012 10:49:28 +0000 (10:49 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 13 Feb 2012 10:49:28 +0000 (10:49 +0000)
commit820aa361923fb39b4d6412dc38394765ae8ffdc3
tree922ad5b4cedf0074adcdad02d78ec3b673a5ccdd
parent69ad7c1affc1334a43d50513f7776e43ff87551e
Do not write to -1 buffer address

In case of zero bytes would be read from sysfs, it would store '\0' on
temp_buf[-1] address.

Simplify some buffer length calculation and use strcpy if we've just
checked string fits in give buffer.

Replace jump label error: with bad: commonly used in libdm.
WHATS_NEW_DM
libdm/libdm-common.c
This page took 0.031074 seconds and 5 git commands to generate.