projects
/
oweals
/
mountd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e892a0c
)
mount: fix format overflow
author
Hans Dedecker
<dedeckeh@gmail.com>
Fri, 4 Jan 2019 10:14:52 +0000
(11:14 +0100)
committer
Hans Dedecker
<dedeckeh@gmail.com>
Fri, 4 Jan 2019 10:14:52 +0000
(11:14 +0100)
mount.c
patch
|
blob
|
history
diff --git
a/mount.c
b/mount.c
index 1d581ea2358f10c3182fb326a8e6338fa73268ea..26e416e3f22c99c2304bcc8f1dde68578a21c057 100644
(file)
--- a/
mount.c
+++ b/
mount.c
@@
-394,11
+394,12
@@
static char* mount_get_serial(char *dev)
{
int id;
struct stat buf;
- char tmp3[
64
];
+ char tmp3[
255
];
int ret;
*t = 0;
id = atoi(namelist[n]->d_name);
*t = ':';
+
sprintf(tmp3, "/sys/bus/scsi/devices/%s/block:%s/", namelist[n]->d_name, dev);
ret = stat(tmp3, &buf);
if(ret)