Changeset 30281


Ignore:
Timestamp:
Feb 21, 2008, 9:47:34 AM (16 years ago)
Author:
1gray
Message:

lib/gis/ls.c (G_ls_format): Fixed the division by zero bug when a name
or names exceed the terminal width.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • grass/trunk/lib/gis/ls.c

    r25209 r30281  
    156156                       * fit per line (+1 because of space after item) */
    157157        perline = screen_width / (max_len + 1);
     158        if (perline < 1) perline = 1;
    158159    }   
    159160   
Note: See TracChangeset for help on using the changeset viewer.