patch file cleanup... ick.. kaloz you owe me some love
[openwrt/svn-archive/archive.git] / net / asterisk / patches / 001-chan_iax2-tmp_path.patch
1 diff -Nru asterisk-1.2.14.org/channels/chan_iax2.c asterisk-1.2.14/channels/chan_iax2.c
2 --- asterisk-1.2.14.org/channels/chan_iax2.c 2006-12-09 16:45:37.000000000 +0100
3 +++ asterisk-1.2.14/channels/chan_iax2.c 2006-12-27 08:46:38.000000000 +0100
4 @@ -1191,7 +1191,7 @@
5 last++;
6 else
7 last = s;
8 - snprintf(s2, strlen(s) + 100, "/var/tmp/%s-%ld", last, (unsigned long)rand());
9 + snprintf(s2, strlen(s) + 100, "/tmp/%s-%ld", last, (unsigned long)rand());
10 res = stat(s, &stbuf);
11 if (res < 0) {
12 ast_log(LOG_WARNING, "Failed to stat '%s': %s\n", s, strerror(errno));