LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File openmotif-unaligned.diff of Package motif (Project devel:libraries:c_c++)

Index: b/lib/Xm/TextF.c
===================================================================
--- a/lib/Xm/TextF.c
+++ b/lib/Xm/TextF.c
@@ -3975,7 +3975,7 @@ InsertChar(Widget w,
 					    nextPos, insert_string,
 					    insert_length, True);
     } else {
-      char stack_cache[100];
+      wchar_t stack_cache[100];
       insert_string[insert_length] = '\0'; /* NULL terminate for mbstowcs */
       wc_insert_string = (wchar_t*)XmStackAlloc((Cardinal)(insert_length+1) *
 						sizeof(wchar_t), stack_cache);
@@ -7037,7 +7037,7 @@ ValidateString(XmTextFieldWidget tf,
   
   int str_len = 0;
   int i, j;
-  char stack_cache[400];
+  wchar_t stack_cache[400];
   
   if (!is_wchar) {
     char *temp_str, *curr_str, *start_temp;