Changeset 3472845 for global.c


Ignore:
Timestamp:
Feb 11, 2011, 5:18:45 PM (13 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.10, release-1.8, release-1.9
Children:
8a97586
Parents:
d4927a7
git-author:
Anders Kaseorg <andersk@mit.edu> (08/27/09 00:56:39)
git-committer:
Anders Kaseorg <andersk@mit.edu> (02/11/11 17:18:45)
Message:
Replace owl_sprintf with g_strdup_printf.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: Karl Ramm <kcr@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • global.c

    rd4927a7 r3472845  
    9494  g->confdir = NULL;
    9595  g->startupfile = NULL;
    96   cd = owl_sprintf("%s/%s", g->homedir, OWL_CONFIG_DIR);
     96  cd = g_strdup_printf("%s/%s", g->homedir, OWL_CONFIG_DIR);
    9797  owl_global_set_confdir(g, cd);
    9898  g_free(cd);
     
    382382  g->confdir = g_strdup(cd);
    383383  g_free(g->startupfile);
    384   g->startupfile = owl_sprintf("%s/startup", cd);
     384  g->startupfile = g_strdup_printf("%s/startup", cd);
    385385}
    386386
     
    965965    g->debug_file = NULL;
    966966
    967     path = owl_sprintf("%s.%d", filename, getpid());
     967    path = g_strdup_printf("%s.%d", filename, getpid());
    968968    fd = open(path, O_CREAT|O_WRONLY|O_EXCL, 0600);
    969969    g_free(path);
Note: See TracChangeset for help on using the changeset viewer.