pud: use the correct field for padding master
authorFerry Huberts <ferry.huberts@pelagic.nl>
Sun, 24 Nov 2019 10:14:28 +0000 (11:14 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Sun, 24 Nov 2019 10:18:27 +0000 (11:18 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/pud/src/gpsConversion.c

index a8628b7..7eb4c13 100644 (file)
@@ -368,7 +368,7 @@ unsigned int gpsToOlsr(NmeaInfo *nmeaInfo, union olsr_message *olsrMessage,
 
        /* pad with zeroes */
        if (aligned_size_remainder != 0) {
-               memset(&(((char *) &olsrGpsMessage->nodeInfo.nodeIdType)[nodeLength]),
+               memset(&(((char *) &olsrGpsMessage->nodeInfo.nodeId)[nodeLength]),
                                0, (4 - aligned_size_remainder));
        }