Ignore:
Timestamp:
03/03/08 11:58:03 (5 years ago)
Author:
chris
Message:
  • src/phone-kit/moko-sms.c: (on_incoming_sms): Move g_utf16_to_utf8 outside of the for loop - error inserted by myself while integrating previous patch
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/phone-kit/moko-sms.c

    r4139 r4147  
    301301    { 
    302302      gint i; 
    303       gunichar2 *ucs2 = sms->payload.data; 
     303      gunichar2 *ucs2 = (gunichar2 *)sms->payload.data; 
    304304 
    305305      g_debug ("Decoding UCS-2 message"); 
    306306 
    307       for (i = 0; i < sms->payload.length / 2; i++) { 
     307      for (i = 0; i < sms->payload.length / 2; i++) 
    308308        ucs2[i] = GUINT16_FROM_BE(ucs2[i]); 
    309309 
    310         message = g_utf16_to_utf8 ((const gunichar2 *)sms->payload.data, 
    311                                    sms->payload.length, NULL, NULL, NULL); 
    312       } 
    313  
     310      message = g_utf16_to_utf8 (ucs2, 
     311                                 sms->payload.length, NULL, NULL, NULL); 
     312       
    314313      break; 
    315314    } 
Note: See TracChangeset for help on using the changeset viewer.