chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
localectl: fix localectl set-x11-keymap syntax description
[elogind.git]
/
src
/
shared
/
replace-var.c
diff --git
a/src/shared/replace-var.c
b/src/shared/replace-var.c
index e11c57a43d75d1504fe3d279c3717846d37a050b..478fc43a38858ac34ff38b6564a4e49e04edd71a 100644
(file)
--- a/
src/shared/replace-var.c
+++ b/
src/shared/replace-var.c
@@
-24,6
+24,7
@@
#include "macro.h"
#include "util.h"
#include "replace-var.h"
#include "macro.h"
#include "util.h"
#include "replace-var.h"
+#include "def.h"
/*
* Generic infrastructure for replacing @FOO@ style variables in
/*
* Generic infrastructure for replacing @FOO@ style variables in
@@
-40,7
+41,7
@@
static int get_variable(const char *b, char **r) {
if (*b != '@')
return 0;
if (*b != '@')
return 0;
- k = strspn(b + 1,
"ABCDEFGHIJKLMNOPQRSTUVWXYZ
_");
+ k = strspn(b + 1,
UPPERCASE_LETTERS "
_");
if (k <= 0 || b[k+1] != '@')
return 0;
if (k <= 0 || b[k+1] != '@')
return 0;