Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156470323
D45463.id139345.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
534 B
Referenced Files
None
Subscribers
None
D45463.id139345.diff
View Options
diff --git a/usr.sbin/bluetooth/btpand/btpand.c b/usr.sbin/bluetooth/btpand/btpand.c
--- a/usr.sbin/bluetooth/btpand/btpand.c
+++ b/usr.sbin/bluetooth/btpand/btpand.c
@@ -143,9 +143,11 @@
case 's': /* service */
case 'S': /* service (no SDP) */
- for (ul = 0; strcasecmp(optarg, services[ul].name); ul++) {
+ for (ul = 0; ; ul++) {
if (ul == __arraycount(services))
errx(EXIT_FAILURE, "%s: unknown service", optarg);
+ if (strcasecmp(optarg, services[ul].name) == 0)
+ break;
}
if (ch == 's')
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, May 14, 9:47 PM (2 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33062936
Default Alt Text
D45463.id139345.diff (534 B)
Attached To
Mode
D45463: Fix off-by-one bug in btpand
Attached
Detach File
Event Timeline
Log In to Comment