/[path-sandbox]/tags/sandbox_1_2_13/canonicalize.c
Gentoo

Diff of /tags/sandbox_1_2_13/canonicalize.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 43 Revision 117
165 165
166 return resolved ? rpath : memcpy(resolved, rpath, dest - rpath + 1); 166 return resolved ? rpath : memcpy(resolved, rpath, dest - rpath + 1);
167 167
168error: 168error:
169 if (resolved) 169 if (resolved)
170 strncpy(resolved, rpath, path_max - 1); 170 snprintf(resolved, path_max, "%s", rpath);
171 else 171 else
172 free(rpath); 172 free(rpath);
173 return NULL; 173 return NULL;
174} 174}
175 175

Legend:
Removed from v.43  
changed lines
  Added in v.117

  ViewVC Help
Powered by ViewVC 1.1.20