[xml] xmlSaveUri() bug with % escapes

Date view Thread view Subject view Author view

From: Wayne Davison (wayned@blorf.net)
Date: Mon Sep 18 2000 - 22:21:53 EDT


The xmlSaveUri() function was not handling negative character values
properly when converting a character into a %XX escape. The simple
fix would be just to turn all the "val" assignments into:

    int val = *(unsigned char *)p++;

However, I went a step further and changed the two switch statements
that accompany each instance of this into something more compact (and
hopefully more optimal). If you don't like the whole patch, at least
fix the "val" assignments.

The patch is attached.

..wayne..


----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Sep 18 2000 - 22:44:18 EDT