瀏覽代碼

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 13 年之前
父節點
當前提交
b9211cf493
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);