summaryrefslogtreecommitdiffstats
path: root/devel/gnomevfs2/files/patch-libgnomevfs_gnome-vfs-utils.c
blob: 249ca081184240bd491658775c3c37d21fb05f0f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--- libgnomevfs/gnome-vfs-utils.c.orig  Thu Feb 10 05:00:21 2005
+++ libgnomevfs/gnome-vfs-utils.c   Mon Feb 21 16:32:20 2005
@@ -880,7 +880,7 @@ gnome_vfs_icon_path_from_filename (const
    paths = g_strsplit (gnome_var, ":", 0); 
 
    for (temp_paths = paths; *temp_paths != NULL; temp_paths++) {
-       full_filename = g_strconcat (*temp_paths, "/share/pixmaps/", relative_filename, NULL);
+       full_filename = g_strconcat (*temp_paths, "/share/gnome/pixmaps/", relative_filename, NULL);
        if (g_file_test (full_filename, G_FILE_TEST_EXISTS)) {
            g_strfreev (paths);
            return full_filename;
@@ -1083,6 +1083,9 @@ gnome_vfs_read_entire_file (const char *
        total_bytes_read += bytes_read;
    } while (result == GNOME_VFS_OK);
 
+   buffer = g_realloc (buffer, total_bytes_read + 1);
+   buffer[total_bytes_read] = '\0';
+
    /* Close the file. */
    result = gnome_vfs_close (handle);
    if (result != GNOME_VFS_OK) {
@@ -1092,7 +1095,7 @@ gnome_vfs_read_entire_file (const char *
 
    /* Return the file. */
    *file_size = total_bytes_read;
-   *file_contents = g_realloc (buffer, total_bytes_read);
+   *file_contents = g_realloc (buffer, total_bytes_read + 1);
    return GNOME_VFS_OK;
 }
 
b'>Remove # $FreeBSD$ from Makefiles.Mathieu Arnold2021-04-061-1/+0 * Bump devel/jsoncpp consumers after r540853.Tobias C. Berner2020-07-01lass='left'>AgeFilesLines * - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)amdmi32011-09-241-2/+2 * Upgrade to 0.4.0.kuriyama2009-02-151-1/+1 * Upgrade to 0.3.0.kuriyama2009-01-011-2/+2 * - Upgrade to 0.0.3 to support PHP 5.2 and unbreak.kuriyama2007-02-131-5/+1 * Schedule these broken ports for removal on 2007-04-10 if they are stillkris2007-02-111-0/+2 * BROKEN: DOes not compilekris2006-11-171-0/+2 * In some environment, build fails without $PTHREAD_* parameters.kuriyama2006-08-311-0/+2