Fix two problems introduced in last change.
authordrepper <drepper>
Mon, 20 Aug 2001 19:55:03 +0000 (19:55 +0000)
committerdrepper <drepper>
Mon, 20 Aug 2001 19:55:03 +0000 (19:55 +0000)
argp/argp-help.c

index fccc833..e51825c 100644 (file)
@@ -1768,9 +1768,8 @@ __argp_failure (const struct argp_state *state, int status, int errnum,
 
 #ifdef USE_IN_LIBIO
          if (_IO_fwide (stream, 0) > 0)
-           fputws_unlocked (state
-                            ? state->name : program_invocation_short_name,
-                            stream);
+           __fwprintf (stream, L"%s",
+                       state ? state->name : program_invocation_short_name);
          else
 #endif
            fputs_unlocked (state
@@ -1811,7 +1810,7 @@ __argp_failure (const struct argp_state *state, int status, int errnum,
 
 #ifdef USE_IN_LIBIO
              if (_IO_fwide (stream, 0) > 0)
-               __fwprintf (stream, ": %s",
+               __fwprintf (stream, L": %s",
                            __strerror_r (errnum, buf, sizeof (buf)));
              else
 #endif