Commit ddfc677
committed
Fix ows_geobbox_copy() to use correct sizeof()
The function should do a sizeof() of the structure, and not a pointer
to the structure. Raised by GCC 4.8
src/ows/ows_geobbox.c: In function ‘ows_geobbox_copy’:
src/ows/ows_geobbox.c:62:29: warning: argument to ‘sizeof’ in ‘memcpy’ call is the same pointer type ‘struct ows_geobbox *’ as the destination; expected ‘ows_geobbox’ or an explicit length [-Wsizeof-pointer-memaccess]
return memcpy(c, g, sizeof(g));1 parent a8a29e0 commit ddfc677
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
| 61 | + | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
0 commit comments