FPDFTextObj_GetFontName: improve type of the output buffer

This was untyped void*, but in practice we always write at as a char*,
make that explicit.

Change-Id: I4e31e7580a0a9bde99d41d8e00f679927191a6ef
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/82670
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
diff --git a/fpdfsdk/fpdf_edittext.cpp b/fpdfsdk/fpdf_edittext.cpp
index fde0b40..da3d092 100644
--- a/fpdfsdk/fpdf_edittext.cpp
+++ b/fpdfsdk/fpdf_edittext.cpp
@@ -547,7 +547,7 @@
 
 FPDF_EXPORT unsigned long FPDF_CALLCONV
 FPDFTextObj_GetFontName(FPDF_PAGEOBJECT text,
-                        void* buffer,
+                        char* buffer,
                         unsigned long length) {
   CPDF_TextObject* pTextObj = CPDFTextObjectFromFPDFPageObject(text);
   if (!pTextObj)
diff --git a/public/fpdf_edit.h b/public/fpdf_edit.h
index 2290cd5..563ed02 100644
--- a/public/fpdf_edit.h
+++ b/public/fpdf_edit.h
@@ -1241,7 +1241,7 @@
 // will not be modified.
 FPDF_EXPORT unsigned long FPDF_CALLCONV
 FPDFTextObj_GetFontName(FPDF_PAGEOBJECT text,
-                        void* buffer,
+                        char* buffer,
                         unsigned long length);
 
 // Experimental API.