Author: Alexander Barkov
Email: [EMAIL PROTECTED]
Message:
Hello! There was a bug in search.c.

This patch fixes it:

867c867
<                 sprintf(UDM_STREND(Target),"%s",Agent->glang);
---
>               sprintf(UDM_STREND(Target),"%s",Agent->glang?Agent->glang:"");



Thanks for report!


> Dams
> 
> 
> (gdb) backtrace
> #0  0xff232e5c in strlen () from /usr/lib/libc.so.1
> #1  0xff281890 in _doprnt () from /usr/lib/libc.so.1
> #2  0xff283658 in sprintf () from /usr/lib/libc.so.1
> #3  0x15588 in PrintOneTemplate (Agent=0xa1068, Doc=0x0, 
>     Target=0xffbe7ee0 &quot;&lt;OPTION VALUE=\&quot;\&quot; SELECTED=\&quot;&quot;, 
>s=0xa6745 &quot;\&quot;&gt;Any\n&quot;, 
>     where=100, ntempl=0) at search.c:555
> #4  0x17948 in PrintOption (Agent=0xa1068, Target=0x522a2 &quot;&quot;, where=100, 
>     option=0xa6728 &quot;&lt;OPTION VALUE=\&quot;\&quot; 
>SELECTED=\&quot;$L\&quot;&gt;Any\n&quot;) at search.c:1126
> #5  0x17d24 in PrintTemplate (Agent=0xa1068, Doc=0x0, 
>     Target=0x51c38 &quot;&lt;HTML&gt;\n&lt;HEAD&gt;\n &lt;TITLE&gt;mnoGoSearch: 
>&lt;/TITLE&gt;\n&lt;/HEAD&gt;\n\n\n&lt;body BGCOLOR=\&quot;#FFFFFF\&quot; 
>LINK=\&quot;#0050A0\&quot; VLINK=\&quot;#0050A0\&quot; 
>ALINK=\&quot;#0050A0\&quot;&gt;\n&lt;center&gt;\n&lt;FORM METHOD=GET 
>ACTION=\&quot;\&quot;&gt;\n&lt;table bgcolor=#eeeee0 order=1 width=&quot;..., 
>where=100) at search.c:1213
> #6  0x18d50 in main (argc=1, argv=0x0) at search.c:1519
> (gdb) 
> 

Reply: <http://search.mnogo.ru/board/message.php?id=2190>

___________________________________________
If you want to unsubscribe send "unsubscribe general"
to [EMAIL PROTECTED]

Reply via email to