Hi,

I use now librapi2-utils 0.13 on Ubuntu Intrepid (packages from ppa).
[Quick look at SVN indicates that this part of the code didn't change]
And it seems to be a problem with synce-pls when giving directory argument:

      p...@bua:~$ synce-pls -d 4 /Storage\ Card/
      [list_matching_files:280] wide_path="\Storage Card"
                                           ^^^^^^^^^^^^^
      [rapi_context_begin_command:261] command=0x1a
      [rapi_buffer_write_data:166] need 4 bytes of additional data
      [rapi_buffer_enlarge:56] trying to realloc 16 bytes, buffer->data=(nil)
      [rapi2_buffer_write_string:233] Writing string of length 14
      [rapi_buffer_write_data:166] need 4 bytes of additional data
      [rapi_buffer_write_data:166] need 28 bytes of additional data
      [rapi_buffer_enlarge:52] new_size=16, bytes_needed=36
      [rapi_buffer_enlarge:52] new_size=32, bytes_needed=36
      [rapi_buffer_enlarge:56] trying to realloc 64 bytes,
buffer->data=0x899c8b8
      [rapi_buffer_write_data:166] need 4 bytes of additional data
      [rapi_buffer_recv:595] Size = 0x0000003e
      [rapi_buffer_reset:125] size=0x0000003e
      [_CeFindAllFiles2:58] found 1 files
      [_CeFindAllFiles2:107] array[i].cFileName="Storage Card"
      [list_matching_files:280] wide_path="\Storage Card\Storage Card\*.*"
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^
      [rapi_context_begin_command:261] command=0x1a
      [rapi_buffer_write_data:166] need 4 bytes of additional data
      [rapi_buffer_enlarge:56] trying to realloc 16 bytes, buffer->data=(nil)
      [rapi2_buffer_write_string:233] Writing string of length 31
      [rapi_buffer_write_data:166] need 4 bytes of additional data
      [rapi_buffer_write_data:166] need 62 bytes of additional data
      [rapi_buffer_enlarge:52] new_size=16, bytes_needed=70
      [rapi_buffer_enlarge:52] new_size=32, bytes_needed=70
      [rapi_buffer_enlarge:52] new_size=64, bytes_needed=70
      [rapi_buffer_enlarge:56] trying to realloc 128 bytes,
buffer->data=0x899ccf0
      [rapi_buffer_write_data:166] need 4 bytes of additional data
      [rapi_buffer_recv:595] Size = 0x0000000c
      [rapi_buffer_reset:125] size=0x0000000c
      [_CeFindAllFiles2:58] found 0 files

It happens for every directory given as the argument (\windows or
whatever). When directory argument is ommitted or given root it works
fine.

Here is the patch that fixes this behaviour for me:
http://tfuj.pl/gnokii/synce-pls.patch
I have tested several testcases and it just works fine. However I am
not sure if it fixes the root cause.

take care,
-- 
Pawel Kot

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
SynCE-Devel mailing list
SynCE-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synce-devel

Reply via email to