Changeset 841 for branches


Ignore:
Timestamp:
Sep 26, 2006, 2:47:02 PM (13 years ago)
Author:
andree
Message:

Fixed display problem in newt mode where old strings weren't fully
overwritten which led to garbled display by improving function
center_string(). (This is also the fix for Debian bug #320152.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/mondo/common/libmondo-string.c

    r831 r841  
    9898    for (p = in_out; *p == ' '; p++);
    9999    strcpy(scratch, p);
     100    strip_spaces (scratch);
    100101    len = (int) strlen(scratch);
    101102    mid = width / 2;
     
    106107    in_out[i] = '\0';
    107108    strcat(in_out, scratch);
     109    for (i = x + len ; i < width - 1; i++) {
     110            in_out[i] = ' ';
     111        }
     112    in_out[i] = '\0';
    108113}
    109114
Note: See TracChangeset for help on using the changeset viewer.