X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/7363caa739bd64724ec6b12208d4f30f06258845..dad45413b94d2a55276b62f6e1ff889cb9e6f0d7:/src/util.c diff --git a/src/util.c b/src/util.c index 975fce06..fefef829 100644 --- a/src/util.c +++ b/src/util.c @@ -1,8 +1,8 @@ /* * Viking - GPS data editor - * Copyright (C) 2007 Guilhem Bonnefille + * Copyright (C) 2007, Guilhem Bonnefille * Based on: - * Copyright (C) 2003-2007 Leandro A. F. Pereira + * Copyright (C) 2003-2007, Leandro A. F. Pereira * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -26,7 +26,9 @@ #endif #include +#include +#include "util.h" #include "dialog.h" static gboolean spawn_command_line_async(const gchar * cmd, @@ -101,7 +103,7 @@ gchar *uri_escape(gchar *str) else if (g_ascii_isalnum(*src)) *dst++ = *src; else { - g_sprintf(dst, "%%%02X", *src); + g_sprintf(dst, "%%%02hhX", *src); dst += 3; } }