Skip to content

Commit

Permalink
Update WeatherSensor.h
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-bs committed Jul 10, 2023
1 parent d48ca60 commit 5694229
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/WeatherSensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ class WeatherSensor {
int len2 = strlen(descr);
int prefix_len = max(len1, len2);

memset(buf, " ", prefix_len);
memset(buf, ' ', prefix_len);
buf[prefix_len] = '\0';
offs = (len1 < len2) ? (len2 - len 1) : 0;
strcpy(&buf[offs], txt);
Expand All @@ -416,7 +416,7 @@ class WeatherSensor {
}
log_v("%s", buf);

memset(buf, " ", prefix_len);
memset(buf, ' ', prefix_len);
buf[prefix_len] ='\0';
offs = (len1 > len2) ? (len1 - len2) : 0;
strcpy(&buf[offs], descr);
Expand Down

0 comments on commit 5694229

Please sign in to comment.