libpurple/protocols/mxit/splashscreen.c

changeset 33661
2ebcb105e606
parent 33052
df92c3d93904
child 33760
66611fba7197
equal deleted inserted replaced
33660:632df42123db 33661:2ebcb105e606
182 filename = g_strdup_printf("%s/mxit/%s.png", purple_user_dir(), splashId); 182 filename = g_strdup_printf("%s/mxit/%s.png", purple_user_dir(), splashId);
183 if (g_file_get_contents(filename, &imgdata, &imglen, NULL)) { 183 if (g_file_get_contents(filename, &imgdata, &imglen, NULL)) {
184 char buf[128]; 184 char buf[128];
185 185
186 /* Add splash-image to imagestore */ 186 /* Add splash-image to imagestore */
187 imgid = purple_imgstore_add_with_id(g_memdup(imgdata, imglen), imglen, NULL); 187 imgid = purple_imgstore_new_with_id(g_memdup(imgdata, imglen), imglen, NULL);
188 188
189 /* Generate and display message */ 189 /* Generate and display message */
190 g_snprintf(buf, sizeof(buf), 190 g_snprintf(buf, sizeof(buf),
191 "<img src=\"" PURPLE_STORED_IMAGE_PROTOCOL "%d\">", imgid); 191 "<img src=\"" PURPLE_STORED_IMAGE_PROTOCOL "%d\">", imgid);
192 192

mercurial