Changes in logging.c [6829afc:dde1b4d]
Legend:
- Unmodified
- Added
- Removed
-
logging.c
r6829afc rdde1b4d 224 224 while (cc != NULL) { 225 225 temp = short_zuser(cc->data); 226 filename = g_ strdup_printf("%s/%s", logpath, temp);226 filename = g_build_filename(logpath, temp, NULL); 227 227 owl_log_append(m, filename); 228 228 … … 248 248 } 249 249 250 filename = g_ strdup_printf("%s/%s", logpath, to);250 filename = g_build_filename(logpath, to, NULL); 251 251 owl_log_append(m, filename); 252 252 g_free(to); 253 253 g_free(filename); 254 254 255 filename = g_ strdup_printf("%s/all", logpath);255 filename = g_build_filename(logpath, "all", NULL); 256 256 owl_log_append(m, filename); 257 257 g_free(logpath); … … 285 285 /* expand ~ in path names */ 286 286 logpath = owl_util_makepath(owl_global_get_logpath(&g)); 287 filename = g_ strdup_printf("%s/%s", logpath, tobuff);287 filename = g_build_filename(logpath, tobuff, NULL); 288 288 msgbuf = g_string_new(""); 289 289 g_string_printf(msgbuf, "ERROR (owl): %s\n%s\n", tobuff, text); … … 294 294 g_string_free(msgbuf, TRUE); 295 295 296 filename = g_ strdup_printf("%s/all", logpath);296 filename = g_build_filename(logpath, "all", NULL); 297 297 g_free(logpath); 298 298 msgbuf = g_string_new(""); … … 393 393 if (personal) { 394 394 logpath = owl_util_makepath(owl_global_get_logpath(&g)); 395 filename = g_ strdup_printf("%s/%s", logpath, from);396 allfilename = g_ strdup_printf("%s/all", logpath);395 filename = g_build_filename(logpath, from, NULL); 396 allfilename = g_build_filename(logpath, "all", NULL); 397 397 owl_log_append(m, allfilename); 398 398 g_free(allfilename); 399 399 } else { 400 400 logpath = owl_util_makepath(owl_global_get_classlogpath(&g)); 401 filename = g_ strdup_printf("%s/%s", logpath, from);401 filename = g_build_filename(logpath, from, NULL); 402 402 } 403 403 … … 415 415 temp = short_zuser(cc->data); 416 416 if (strcasecmp(temp, frombuff) != 0) { 417 filename = g_ strdup_printf("%s/%s", logpath, temp);417 filename = g_build_filename(logpath, temp, NULL); 418 418 owl_log_append(m, filename); 419 419 g_free(filename);
Note: See TracChangeset
for help on using the changeset viewer.