diff --git a/cpu/cc430/periph/rtc.c b/cpu/cc430/periph/rtc.c index f1efc891f37e8fa0620420168390b6b76a041dce..2be809ea82dcf1fc962fe5dc778f76d1ec955845 100644 --- a/cpu/cc430/periph/rtc.c +++ b/cpu/cc430/periph/rtc.c @@ -60,7 +60,7 @@ int rtc_set_time(struct tm *localt) } /* copy time to be set */ - memcpy(&time_to_set, localt, sizeof(struct tm)); + time_to_set = *localt; set_time = 1; return 0; }