Changeset 2780

Show
Ignore:
Timestamp:
11/10/07 16:16:42 (1 year ago)
Author:
cstender
Message:

g_build_filename should be null terminated (fixed gcc 4.3 errors)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/opie-sync/src/opie_comms.c

    r2746 r2780  
    12591259                /* Create a temp directory */ 
    12601260                char *randstr = g_strdup_printf("opie-sync-%i", g_random_int_range(0, 2000000000)); 
    1261                 char *temppath = g_build_filename(g_get_tmp_dir(), randstr); 
     1261                char *temppath = g_build_filename(g_get_tmp_dir(), randstr, NULL); 
    12621262                g_free(randstr); 
    12631263                 
     
    13511351                /* Create a temp directory */ 
    13521352                char *randstr = g_strdup_printf("opie-sync-%i", g_random_int_range(0, G_MAXUINT32)); 
    1353                 temppath = g_build_filename(g_get_tmp_dir(), randstr); 
     1353                temppath = g_build_filename(g_get_tmp_dir(), randstr, NULL); 
    13541354                g_free(randstr); 
    13551355