Page MenuHomeFreeBSD

D29463.diff
No OneTemporary

D29463.diff

diff --git a/sys/dev/sound/pcm/dsp.c b/sys/dev/sound/pcm/dsp.c
--- a/sys/dev/sound/pcm/dsp.c
+++ b/sys/dev/sound/pcm/dsp.c
@@ -2294,8 +2294,7 @@
size_t len;
len = strlen(namep);
-
- if (bcmp(name, namep, len) != 0)
+ if (strncmp(name, namep, len) != 0)
return (ENODEV);
name += len;
diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c
--- a/sys/kern/kern_conf.c
+++ b/sys/kern/kern_conf.c
@@ -1255,7 +1255,7 @@
int u, i;
i = strlen(stem);
- if (bcmp(stem, name, i) != 0)
+ if (strncmp(stem, name, i) != 0)
return (0);
if (!isdigit(name[i]))
return (0);

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 23, 1:32 PM (17 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14802697
Default Alt Text
D29463.diff (586 B)

Event Timeline