Ignore:
Timestamp:
May 12, 2006, 9:33:44 PM (15 years ago)
Author:
Sam Hocevar
Message:
  • Workaround for illegal [[0,0H ANSI escape code.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/cucul/import.c

    r946 r954  
    348348            case 'f': /* CUP - Cursor Position */
    349349            case 'H': /* HVP - Character And Line Position */
    350                 x = (argc > 1) ? argv[1] - 1 : 0;
    351                 y = (argc > 0) ? argv[0] - 1 : 0;
     350                x = (argc > 1 && argv[1] > 0) ? argv[1] - 1 : 0;
     351                y = (argc > 0 && argv[0] > 0) ? argv[0] - 1 : 0;
    352352                break;
    353353            case 'A': /* CUU - Cursor Up */
     
    371371                save_y = y;
    372372                break;
    373             case 'u': /* Private (reload cursor positin) */
     373            case 'u': /* Private (reload cursor position) */
    374374                x = save_x;
    375375                y = save_y;
Note: See TracChangeset for help on using the changeset viewer.