Skip to content

Commit

Permalink
Update ps/ps.map/do_scalebar.c
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
ShubhamDesai and github-actions[bot] committed Sep 11, 2024
1 parent 22a8fdf commit e00c7d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ps/ps.map/do_scalebar.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ int do_scalebar(void)

/* draw units label */
if (sb.units == SB_UNITS_AUTO) {
if (G_strlcpy(num, G_database_unit_name(TRUE), sizeof(num))
>= sizeof(num)) {
if (G_strlcpy(num, G_database_unit_name(TRUE), sizeof(num)) >=
sizeof(num)) {
G_fatal_error(_("Unit name <%s> is too long"),
G_database_unit_name(TRUE));
}
Expand Down

0 comments on commit e00c7d0

Please sign in to comment.