summaryrefslogtreecommitdiffstats
path: root/src/logicalfile
diff options
context:
space:
mode:
authorRadek Novacek <rnovacek@redhat.com>2013-11-18 15:16:01 +0100
committerRadek Novacek <rnovacek@redhat.com>2013-11-19 08:51:41 +0100
commit81dc0dd53c89a4e5f5b4144f6fab0eb8ba432c34 (patch)
treef94933346b2607b86206919637b1a355339207eb /src/logicalfile
parentb74d51dd10dbd872a6a23c98a4ae5ea503ee1699 (diff)
downloadopenlmi-providers-81dc0dd53c89a4e5f5b4144f6fab0eb8ba432c34.tar.gz
openlmi-providers-81dc0dd53c89a4e5f5b4144f6fab0eb8ba432c34.tar.xz
openlmi-providers-81dc0dd53c89a4e5f5b4144f6fab0eb8ba432c34.zip
Format string hardening
Fix some potential errors in the string formatting.
Diffstat (limited to 'src/logicalfile')
-rw-r--r--src/logicalfile/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/logicalfile/file.c b/src/logicalfile/file.c
index b7469a5..bb17d40 100644
--- a/src/logicalfile/file.c
+++ b/src/logicalfile/file.c
@@ -194,7 +194,7 @@ CMPIStatus stat_logicalfile_and_fill(
case S_IFBLK:
fill_basic(b, UnixDeviceFile, &lf->lf.unixdevicefile, buf, fsname, sb);
/* device-specific stuff */
- char tmp[16];
+ char tmp[21];
sprintf(tmp, "%lu", sb.st_rdev);
LMI_UnixDeviceFile_Set_DeviceId(&lf->lf.unixdevicefile, tmp);
sprintf(tmp, "%u", major(sb.st_rdev));