Ticket #58323: write-java.c.patch
File write-java.c.patch, 949 bytes (added by jmroot (Joshua Root), 6 years ago) |
---|
-
gettext-tools/src/write-java.c
old new msgid_hashcode (const char *msgctxt, con 150 150 char *combined; 151 151 unsigned int result; 152 152 153 combined = (char *) xmalloca (combined_len );153 combined = (char *) xmalloca (combined_len + 1); 154 154 memcpy (combined, msgctxt, msgctxt_len); 155 155 combined[msgctxt_len] = MSGCTXT_SEPARATOR; 156 156 memcpy (combined + msgctxt_len + 1, msgid, msgid_len + 1); … … write_java_msgid (FILE *stream, message_ 416 416 size_t combined_len = msgctxt_len + 1 + msgid_len; 417 417 char *combined; 418 418 419 combined = (char *) xmalloca (combined_len );419 combined = (char *) xmalloca (combined_len + 1); 420 420 memcpy (combined, msgctxt, msgctxt_len); 421 421 combined[msgctxt_len] = MSGCTXT_SEPARATOR; 422 422 memcpy (combined + msgctxt_len + 1, msgid, msgid_len + 1);