Ignore:
Timestamp:
Nov 4, 2007, 3:16:40 AM (17 years ago)
Author:
Bruno Cornec
Message:

Update to busybox 1.7.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mindi-busybox/libbb/process_escape_sequence.c

    r821 r1765  
    99 */
    1010
    11 #include <stdio.h>
    12 #include <limits.h>
    13 #include <ctype.h>
    1411#include "libbb.h"
    1512
     
    2219char bb_process_escape_sequence(const char **ptr)
    2320{
    24     static const char charmap[] = {
     21    static const char charmap[] ALIGN1 = {
    2522        'a',  'b',  'f',  'n',  'r',  't',  'v',  '\\', 0,
    2623        '\a', '\b', '\f', '\n', '\r', '\t', '\v', '\\', '\\' };
     
    4744
    4845    do {
    49         d = (unsigned int)(*q - '0');
     46        d = (unsigned char)(*q) - '0';
    5047#ifdef WANT_HEX_ESCAPES
    5148        if (d >= 10) {
    52             d = ((unsigned int)(_tolower(*q) - 'a')) + 10;
     49            d = (unsigned char)(_tolower(*q)) - 'a' + 10;
    5350        }
    5451#endif
     
    8178            }
    8279        } while (*++p);
    83         n = *(p+(sizeof(charmap)/2));
     80        n = *(p + (sizeof(charmap)/2));
    8481    }
    8582
Note: See TracChangeset for help on using the changeset viewer.