Changeset 1b737a1


Ignore:
Timestamp:
Feb 3, 2008, 12:49:46 AM (13 years ago)
Author:
Alejandro R. Sedeño <asedeno@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
af1920fd
Parents:
879e7e94
Message:
Bounds checking.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fmtext.c

    rfa3290d r1b737a1  
    740740  short pair, default_bg;
    741741
     742  /* Sanity (Bounds) Check */
     743  if (fg > COLORS || fg < OWL_COLOR_DEFAULT) fg = OWL_COLOR_DEFAULT;
     744  if (bg > COLORS || bg < OWL_COLOR_DEFAULT) bg = OWL_COLOR_DEFAULT;
     745           
    742746#ifdef HAVE_USE_DEFAULT_COLORS
    743747  if (fg == OWL_COLOR_DEFAULT) fg = -1;
Note: See TracChangeset for help on using the changeset viewer.