masqmail

changeset 38:ac0233b5f6f8

removed trigraph warning
author meillo@marmaro.de
date Mon, 10 May 2010 10:57:23 +0200
parents 4fee89792559
children a3476e422865
files src/queue.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/src/queue.c	Mon May 10 10:39:28 2010 +0200
     1.2 +++ b/src/queue.c	Mon May 10 10:57:23 2010 +0200
     1.3 @@ -48,7 +48,9 @@
     1.4  	gchar *pattern;
     1.5  	int i, *idx_arr;
     1.6  
     1.7 -	pattern = g_strdup_printf("%s/input/??????-???-??-H", conf.spool_dir);
     1.8 +	/* Escaping the question marks prevents them from being
     1.9 +	   interpreted as trigraphs */
    1.10 +	pattern = g_strdup_printf("%s/input/?????\?-??\?-?\?-H", conf.spool_dir);
    1.11  	gl.gl_offs = 0;
    1.12  	glob(pattern, 0, NULL, &gl);
    1.13