Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108366251
D26145.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
443 B
Referenced Files
None
Subscribers
None
D26145.diff
View Options
Index: head/sys/dev/jedec_dimm/jedec_dimm.c
===================================================================
--- head/sys/dev/jedec_dimm/jedec_dimm.c
+++ head/sys/dev/jedec_dimm/jedec_dimm.c
@@ -795,7 +795,7 @@
/* If we're dealing with ASCII, convert trailing spaces to NULs. */
if (ascii) {
- for (i = dstsz; i > 0; i--) {
+ for (i = dstsz - 1; i > 0; i--) {
if (dst[i] == ' ') {
dst[i] = 0;
} else if (dst[i] == 0) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 25, 5:01 AM (10 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16125215
Default Alt Text
D26145.diff (443 B)
Attached To
Mode
D26145: Overrunning array fix
Attached
Detach File
Event Timeline
Log In to Comment