Changeset 06af663 for message.c


Ignore:
Timestamp:
Jul 12, 2011, 12:26:19 PM (10 years ago)
Author:
David Benjamin <davidben@mit.edu>
Children:
a7b125d
Parents:
16cf182d
git-author:
David Benjamin <davidben@mit.edu> (07/12/11 11:58:02)
git-committer:
David Benjamin <davidben@mit.edu> (07/12/11 12:26:19)
Message:
Use g_build_filename instead of g_strdup_printf to build paths

Saves us a duplicate slash in a few places, although most of the time it
doesn't do anything. Eh, may as well use it and be more explicit or
something.

Also change the one existing call to g_build_path to g_build_filename
instead. It's much less of a pain to use.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • message.c

    rf9df2f0 r06af663  
    884884    char *zcrypt;
    885885
    886     zcrypt = g_strdup_printf("%s/zcrypt", owl_get_bindir());
     886    zcrypt = g_build_filename(owl_get_bindir(), "zcrypt", NULL);
    887887
    888888    rv = call_filter(zcrypt, argv, owl_message_get_body(m), &out, &status);
Note: See TracChangeset for help on using the changeset viewer.