1 diff -r -u liblangtag-0.4.0.org/data/reg2xml.c liblangtag-0.4.0/data/reg2xml.c
2 --- misc/liblangtag-0.4.0.org/data/reg2xml.c 2012-11-06 09:15:59.000000000 -0600
3 +++ misc/build/liblangtag-0.4.0/data/reg2xml.c 2012-11-06 09:33:59.000000000 -0600
7 token = strstr(buffer, ": ");
8 - tag = strndup(buffer, token - buffer);
9 + tag = malloc((token-buffer) + 1);
10 + strncpy(tag, buffer, token-buffer);
11 + tag[token-buffer] = 0;
13 xmlNewChild(ent, NULL,
14 (const xmlChar *)lt_strlower(tag),
15 diff -r -u liblangtag-0.4.0.org/liblangtag/lt-atomic.h liblangtag-0.4.0/liblangtag/lt-atomic.h
16 --- misc/liblangtag-0.4.0.org/liblangtag/lt-atomic.h 2012-11-06 09:15:59.000000000 -0600
17 +++ misc/build/liblangtag-0.4.0/liblangtag/lt-atomic.h 2012-11-06 09:24:15.000000000 -0600
22 - lt_return_if_fail (v != NULL, FALSE);
23 + lt_return_val_if_fail (v != NULL, FALSE);
25 pthread_mutex_lock(&__lt_atomic_lock);
27 diff -r -u liblangtag-0.4.0.org/liblangtag/lt-error.c liblangtag-0.4.0/liblangtag/lt-error.c
28 --- misc/liblangtag-0.4.0.org/liblangtag/lt-error.c 2012-11-06 09:15:59.000000000 -0600
29 +++ misc/build/liblangtag-0.4.0/liblangtag/lt-error.c 2012-11-06 09:18:23.000000000 -0600
34 -#include <execinfo.h>
43 lt_error_data_t *d = lt_mem_alloc_object(sizeof (lt_error_data_t));
47 lt_return_val_if_fail (error != NULL, NULL);
49 d->message = lt_strdup_vprintf(message, ap);
52 - size = backtrace(traces, 1024);
54 - d->traces = backtrace_symbols(traces, size);
55 - d->stack_size = size;
58 lt_mem_add_ref(&d->parent, d->message, free);
59 - lt_mem_add_ref(&d->parent, d->traces, free);
61 allocated = (*error)->data == NULL;
62 (*error)->data = lt_list_append((*error)->data, d, (lt_destroy_func_t)lt_mem_unref);
63 diff -r -u liblangtag-0.4.0.org/liblangtag/lt-ext-module.c liblangtag-0.4.0/liblangtag/lt-ext-module.c
64 --- misc/liblangtag-0.4.0.org/liblangtag/lt-ext-module.c 2012-11-06 09:15:59.000000000 -0600
65 +++ misc/build/liblangtag-0.4.0/liblangtag/lt-ext-module.c 2012-11-06 09:30:31.000000000 -0600
68 if (len > suffix_len &&
69 lt_strcmp0(&filename[prefix_len + len - suffix_len], "." LT_MODULE_SUFFIX) == 0) {
70 - module = strndup(&filename[prefix_len], len - suffix_len);
71 + module = malloc((len-suffix_len) + 1);
72 + strncpy(module, &filename[prefix_len], len-suffix_len);
73 module[len - suffix_len] = 0;
76 diff -r -u liblangtag-0.4.0.org/liblangtag/lt-messages.c liblangtag-0.4.0/liblangtag/lt-messages.c
77 --- misc/liblangtag-0.4.0.org/liblangtag/lt-messages.c 2012-11-06 09:15:59.000000000 -0600
78 +++ misc/build/liblangtag-0.4.0/liblangtag/lt-messages.c 2012-11-06 09:20:58.000000000 -0600
83 -#include <execinfo.h>
89 _lt_message_stacktrace(void)
95 - size = backtrace(traces, 1024);
97 - strings = backtrace_symbols(traces, size);
98 - lt_debug(LT_MSGCAT_TRACE, "Stacktrace:");
102 - * 1.. _lt_message_default_handler
103 - * 2.. lt_message_vprintf
104 - * 3.. lt_message_printf
107 - for (i = 4; i < size; i++) {
108 - lt_debug(LT_MSGCAT_TRACE, " %d. %s", i - 3, strings[i]);
115 diff -r -u liblangtag-0.4.0.org/liblangtag/lt-utils.c liblangtag-0.4.0/liblangtag/lt-utils.c
116 --- misc/liblangtag-0.4.0.org/liblangtag/lt-utils.c 2012-11-06 09:15:59.000000000 -0600
117 +++ misc/build/liblangtag-0.4.0/liblangtag/lt-utils.c 2012-11-06 09:23:36.000000000 -0600