Mercurial > geeqie.yaz
comparison src/print.c @ 506:fc9c8a3e1a8b
Handle the newline in DEBUG_N() macro instead of adding one
in each debug message string.
author | zas_ |
---|---|
date | Thu, 24 Apr 2008 00:15:03 +0000 |
parents | c7a2471e5c4e |
children | 135570a8bd96 |
comparison
equal
deleted
inserted
replaced
505:60f75a9799b2 | 506:fc9c8a3e1a8b |
---|---|
930 ptr += 8; | 930 ptr += 8; |
931 end = ptr; | 931 end = ptr; |
932 while (*end != '\0' && *end != '\n' && *end != ' ' && *end != '\t') end++; | 932 while (*end != '\0' && *end != '\n' && *end != ' ' && *end != '\t') end++; |
933 *end = '\0'; | 933 *end = '\0'; |
934 list = g_list_append(list, g_strdup(ptr)); | 934 list = g_list_append(list, g_strdup(ptr)); |
935 DEBUG_1("adding printer: %s\n", ptr); | 935 DEBUG_1("adding printer: %s", ptr); |
936 } | 936 } |
937 | 937 |
938 pclose(p); | 938 pclose(p); |
939 | 939 |
940 return list; | 940 return list; |