]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
only \: should be handled here other escapes are handled later on
authorTobias Oetiker <tobi@oetiker.ch>
Thu, 14 Mar 2013 07:53:39 +0000 (08:53 +0100)
committerTobias Oetiker <tobi@oetiker.ch>
Thu, 14 Mar 2013 07:53:39 +0000 (08:53 +0100)
src/rrd_graph_helper.c

index 7bfafb5aad48c0aee8cd51e45fa903e94ec96683..96e1ee9cde90ae528ed5b958e91103e450e637e7 100644 (file)
@@ -205,7 +205,7 @@ int parseArguments(const char* origarg, parsedargs_t* pa) {
     switch (c) {
       /* if the char is a backslash, then this escapes the next one */
     case '\\':
-      if (pos[1]) {
+      if (pos[1] == ':') {
         /* move up the rest of the string to eat the backslash */
         memmove(pos,pos+1,strlen(pos+1)+1);
       }