Skip to content

Commit ee55cb2

Browse files
committed
ExtendedZoneProcessor.h: Copy one fewer byte than kAbbrevSize, to quash compiler warning? (See #107)
1 parent 01496ac commit ee55cb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ace_time/ExtendedZoneProcessor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1248,7 +1248,7 @@ class ExtendedZoneProcessorTemplate: public ZoneProcessor {
12481248
}
12491249
} else {
12501250
// Just copy the FORMAT disregarding deltaMinutes and letterString.
1251-
strncpy(dest, format, destSize);
1251+
strncpy(dest, format, destSize - 1);
12521252
dest[destSize - 1] = '\0';
12531253
}
12541254
}

0 commit comments

Comments
 (0)