summaryrefslogtreecommitdiff
path: root/libarchive/archive_string_sprintf.c
diff options
context:
space:
mode:
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>2011-04-11 00:25:41 -0400
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>2011-04-11 00:25:41 -0400
commitec7d3cfed9408bf94d515823517738c57a71040e (patch)
tree5b9b69ca4ecf2e7d55f90883de3608e461ea761a /libarchive/archive_string_sprintf.c
parentdb176ac31f35650323a1e75e4b6e786650673ed4 (diff)
downloadlibarchive-ec7d3cfed9408bf94d515823517738c57a71040e.tar.gz
Remove first argument of archive_wstring_append_from_mbs/archive_string_append_from_wcs_to_mbs.
It is no longer needed for WCS<==>MBS conversion. SVN-Revision: 3206
Diffstat (limited to 'libarchive/archive_string_sprintf.c')
-rw-r--r--libarchive/archive_string_sprintf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libarchive/archive_string_sprintf.c b/libarchive/archive_string_sprintf.c
index 82b804e1..2bf3e07c 100644
--- a/libarchive/archive_string_sprintf.c
+++ b/libarchive/archive_string_sprintf.c
@@ -141,7 +141,7 @@ archive_string_vsprintf(struct archive_string *as, const char *fmt,
switch(long_flag) {
case 'l':
pw = va_arg(ap, wchar_t *);
- archive_string_append_from_wcs_to_mbs(NULL, as, pw, wcslen(pw));
+ archive_string_append_from_wcs_to_mbs(as, pw, wcslen(pw));
break;
default:
p2 = va_arg(ap, char *);
@@ -151,7 +151,7 @@ archive_string_vsprintf(struct archive_string *as, const char *fmt,
break;
case 'S':
pw = va_arg(ap, wchar_t *);
- archive_string_append_from_wcs_to_mbs(NULL, as, pw, wcslen(pw));
+ archive_string_append_from_wcs_to_mbs(as, pw, wcslen(pw));
break;
case 'o': case 'u': case 'x': case 'X':
/* Common handling for unsigned integer formats. */