diff options
author | Ruediger Meier | 2014-03-14 13:00:01 +0100 |
---|---|---|
committer | Ruediger Meier | 2014-03-14 13:28:29 +0100 |
commit | f0fb84ab360bd30a9a131efd477543a54beb499d (patch) | |
tree | 3d5da99129a475a7edb7a5470c54065b6224c1c6 /disk-utils | |
parent | include/closestream: don't wipe errno on EPIPE (diff) | |
download | kernel-qcow2-util-linux-f0fb84ab360bd30a9a131efd477543a54beb499d.tar.gz kernel-qcow2-util-linux-f0fb84ab360bd30a9a131efd477543a54beb499d.tar.xz kernel-qcow2-util-linux-f0fb84ab360bd30a9a131efd477543a54beb499d.zip |
cfdisk: fix typo (undeclared variable since b1f58330)
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'disk-utils')
-rw-r--r-- | disk-utils/cfdisk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/disk-utils/cfdisk.c b/disk-utils/cfdisk.c index 0b1641eb2..22809f557 100644 --- a/disk-utils/cfdisk.c +++ b/disk-utils/cfdisk.c @@ -1231,8 +1231,8 @@ static ssize_t ui_get_string(struct cfdisk *cf, const char *prompt, #else if (i + 1 < (ssize_t) len && isprint(c)) { mvaddch(ln, cl + cells, c); - str[i++] = c; - str[i] = '\0'; + buf[i++] = c; + buf[i] = '\0'; cells++; } #endif |