# Sorry, I don't subscribe this ML & my poor english.
I used apr_psprintf() in self developed handler, like this.
1439 char *hintfile = (char *) apr_psprintf(r->pool,
"%s/%s/%s.hint",
1440 ntv_hint_file_dir,
1441 fileid,
1442 filename);
Each input strings are
(gdb) display ntv_hint_file_dir
1: ntv_hint_file_dir = 0x820a4d0 "/var/service/tvps/hint"
(gdb) display fileid
2: fileid = 0x827dd58 "h264-fune"
(gdb) display filename
3: filename = 0x827ff9f "h264-fune+0020.tts"
step execute apr_psprintf(), then each input strings are
(gdb) n
3: filename = 0x827ff9f
"rvice/tvps/hint/h264-fune/rvice/tvps/hint/h264-fune/rvic.hint"
2: fileid = 0x827dd58 "h264-fune"
1: ntv_hint_file_dir = 0x820a4d0 "/var/service/tvps/hint"
Why does "filename" is changed?
Any hints or advises, I will be happy.
I use rpm packages as below.
- httpd-devel-2.2.3-11.el5_1.centos.3
- apr-1.2.7-11
--
Kuroishi Mitsuo