chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] udev_volume_id: volume_id version 032
[elogind.git]
/
extras
/
volume_id
/
volume_id
/
linux_swap
/
linux_swap.c
diff --git
a/extras/volume_id/volume_id/linux_swap/linux_swap.c
b/extras/volume_id/volume_id/linux_swap/linux_swap.c
index 7ca4976078d6c651e0a69c25c0d6f312f129b4f5..d34b22c590c993813d2d24d0cf1df8b75a7ecd4b 100644
(file)
--- a/
extras/volume_id/volume_id/linux_swap/linux_swap.c
+++ b/
extras/volume_id/volume_id/linux_swap/linux_swap.c
@@
-61,12
+61,12
@@
int volume_id_probe_linux_swap(struct volume_id *id, __u64 off)
if (buf == NULL)
return -1;
if (buf == NULL)
return -1;
- if (
strn
cmp(buf, "SWAP-SPACE", 10) == 0) {
+ if (
mem
cmp(buf, "SWAP-SPACE", 10) == 0) {
strcpy(id->type_version, "1");
goto found;
}
strcpy(id->type_version, "1");
goto found;
}
- if (
strn
cmp(buf, "SWAPSPACE2", 10) == 0) {
+ if (
mem
cmp(buf, "SWAPSPACE2", 10) == 0) {
sw = (struct swap_header_v1_2 *) volume_id_get_buffer(id, off, sizeof(struct swap_header_v1_2));
if (sw == NULL)
return -1;
sw = (struct swap_header_v1_2 *) volume_id_get_buffer(id, off, sizeof(struct swap_header_v1_2));
if (sw == NULL)
return -1;