Fossil SCM
Minor typo correction in comment---no functional change.
Commit
ab2b8de8962831ef515f3ef4a0708eaa531d71935bbe17d48ecadaf0b55ffc43
Parent
7b2350a86b96f2b…
1 file changed
+1
-1
M
src/th.c
+1
-1
| --- src/th.c | ||
| +++ src/th.c | ||
| @@ -204,11 +204,11 @@ | ||
| 204 | 204 | static int thBufferWrite(Th_Interp *interp, Buffer *, const char *, int); |
| 205 | 205 | static void thBufferInit(Buffer *); |
| 206 | 206 | static void thBufferFree(Th_Interp *interp, Buffer *); |
| 207 | 207 | |
| 208 | 208 | /* |
| 209 | -** This version of memcpy() allows the first are second argument to | |
| 209 | +** This version of memcpy() allows the first and second argument to | |
| 210 | 210 | ** be NULL as long as the number of bytes to copy is zero. |
| 211 | 211 | */ |
| 212 | 212 | static void *th_memcpy(void *dest, const void *src, size_t n){ |
| 213 | 213 | return n>0 ? memcpy(dest,src,n) : dest; |
| 214 | 214 | } |
| 215 | 215 |
| --- src/th.c | |
| +++ src/th.c | |
| @@ -204,11 +204,11 @@ | |
| 204 | static int thBufferWrite(Th_Interp *interp, Buffer *, const char *, int); |
| 205 | static void thBufferInit(Buffer *); |
| 206 | static void thBufferFree(Th_Interp *interp, Buffer *); |
| 207 | |
| 208 | /* |
| 209 | ** This version of memcpy() allows the first are second argument to |
| 210 | ** be NULL as long as the number of bytes to copy is zero. |
| 211 | */ |
| 212 | static void *th_memcpy(void *dest, const void *src, size_t n){ |
| 213 | return n>0 ? memcpy(dest,src,n) : dest; |
| 214 | } |
| 215 |
| --- src/th.c | |
| +++ src/th.c | |
| @@ -204,11 +204,11 @@ | |
| 204 | static int thBufferWrite(Th_Interp *interp, Buffer *, const char *, int); |
| 205 | static void thBufferInit(Buffer *); |
| 206 | static void thBufferFree(Th_Interp *interp, Buffer *); |
| 207 | |
| 208 | /* |
| 209 | ** This version of memcpy() allows the first and second argument to |
| 210 | ** be NULL as long as the number of bytes to copy is zero. |
| 211 | */ |
| 212 | static void *th_memcpy(void *dest, const void *src, size_t n){ |
| 213 | return n>0 ? memcpy(dest,src,n) : dest; |
| 214 | } |
| 215 |