(___printf_fp): Give wide outout code the same treatment as narow
authordrepper <drepper>
Sat, 26 Jul 2008 16:32:50 +0000 (16:32 +0000)
committerdrepper <drepper>
Sat, 26 Jul 2008 16:32:50 +0000 (16:32 +0000)
output code in last patch.

stdio-common/printf_fp.c

index d63be7f..43c43c2 100644 (file)
@@ -1204,6 +1204,10 @@ ___printf_fp (FILE *fp,
 #ifdef COMPILE_WPRINTF
          wstartp = _i18n_number_rewrite (wstartp, wcp,
                                          wbuffer + wbuffer_to_alloc);
+         wcp = wbuffer + wbuffer_to_alloc;
+         assert ((uintptr_t) wbuffer <= (uintptr_t) wstartp);
+         assert ((uintptr_t) wstartp
+                 < (uintptr_t) wbuffer + wbuffer_to_alloc);
 #else
          tmpptr = _i18n_number_rewrite (tmpptr, cp, buffer_end);
          cp = buffer_end;