Changes in uspace/srv/klog/klog.c [3385dd3:8820544] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/klog/klog.c
r3385dd3 r8820544 53 53 #define NAME "klog" 54 54 55 typedef size_t __attribute__ ((aligned(1))) unaligned_size_t;56 57 55 typedef struct { 58 56 size_t entry_len; … … 111 109 size_t offset = 0; 112 110 while (offset < len) { 113 size_t entry_len = *(( unaligned_size_t *) (buffer + offset));111 size_t entry_len = *((size_t *) (buffer + offset)); 114 112 115 113 if (offset + entry_len > len || entry_len < sizeof(log_entry_t))
Note:
See TracChangeset
for help on using the changeset viewer.