Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18bbd32
)
Branch HEAD
author
bobijam
<bobijam>
Mon, 4 Aug 2008 02:03:16 +0000
(
02:03
+0000)
committer
bobijam
<bobijam>
Mon, 4 Aug 2008 02:03:16 +0000
(
02:03
+0000)
b=15576
i=adilger, johann
minor fix to make the code safer.
lustre/obdclass/genops.c
patch
|
blob
|
history
diff --git
a/lustre/obdclass/genops.c
b/lustre/obdclass/genops.c
index
d015eff
..
98c15fe
100644
(file)
--- a/
lustre/obdclass/genops.c
+++ b/
lustre/obdclass/genops.c
@@
-317,7
+317,7
@@
struct obd_device *class_newdev(const char *type_name, const char *name)
new_obd_minor = i;
result->obd_type = type;
strncpy(result->obd_name, name,
- sizeof(result->obd_name));
+ sizeof(result->obd_name)
- 1
);
obd_devs[i] = result;
}
}