Procházet zdrojové kódy

tests/loader.c: decode(): use strcpy() instead of stpcpy() since the latter is not really needed.

Some systems do not defined stpcpy(), even though it is defined by POSIX 2008. Not using stpcpy() will allow StarPU to be built on such systems, such as NetBSD.
Cyril Roelandt před 13 roky
rodič
revize
b9211cf493
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      tests/loader.c

+ 1 - 1
tests/loader.c

@@ -130,7 +130,7 @@ static void decode(char **src, char *motif, char *value)
 
 	       to = strncpy(to, *src, strlen(*src)-strlen(y)); to += strlen(*src)-strlen(y);
 	       to = strcpy(to, value); to += strlen(value);
-	       to = stpcpy(to, y+strlen(motif));
+	       strcpy(to, y+strlen(motif));
 
 	       *src = strdup(neo);
 	       y = strstr(*src, motif);