diff options
Diffstat (limited to 'src/system/dlt-system-journal.c')
-rw-r--r-- | src/system/dlt-system-journal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/system/dlt-system-journal.c b/src/system/dlt-system-journal.c index d6c99c1..926cd17 100644 --- a/src/system/dlt-system-journal.c +++ b/src/system/dlt-system-journal.c @@ -112,7 +112,7 @@ int dlt_system_journal_get(sd_journal* j,char *target,const char *field,size_t m { // truncate strncpy(target,data+field_size,max_size-1); - target[max_size]=0; + target[max_size-1]=0; } else { |