On Tue, Oct 11, 2016 at 10:13 AM, Aleksander Morgado
<aleksan...@aleksander.es> wrote:
>>> ublox: new +UBANDSEL? response parser
>>
>> +    dupstr = g_strdup (mm_strip_tag (response, "+UBANDSEL:"));
>> +    i = strlen (dupstr);
>> +    while (i > 0 && (dupstr[i - 1] == '\r' || dupstr[i - 1] == '\n' || 
>> dupstr[i - 1] == ' ')) {
>> +        dupstr[i - 1] = '\0';
>> +        i--;
>> +    }
>>
>> dupstr = g_strchomp (g_strdup (mm_strip_tag (response, "+UBANDSEL:")));
>>
>> Maybe?
>>
>
> But g_strchomp() doesn't remove LFs and CRs, right?

Oh, wait, it does remove them because CR and LF are considered
whitespaces :) Will change that.

-- 
Aleksander
https://aleksander.es
_______________________________________________
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel

Reply via email to